Fix SCRIPT1028 caused by async (#852)

This commit is contained in:
where where 2024-12-24 04:16:44 +08:00 committed by GitHub
parent 77adbf59d8
commit da4712e78d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -449,7 +449,6 @@ NexT.utils = {
condition = false,
attributes: {
id = '',
async = false,
defer = false,
crossOrigin = '',
dataset = {},
@ -457,6 +456,7 @@ NexT.utils = {
} = {},
parentNode = null
} = options;
const async = options.async ?? false;
return new Promise((resolve, reject) => {
if (condition) {
resolve();