From da4712e78d83f1de75e7316c47a9dce87405ed5a Mon Sep 17 00:00:00 2001 From: where where Date: Tue, 24 Dec 2024 04:16:44 +0800 Subject: [PATCH] Fix SCRIPT1028 caused by async (#852) --- source/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/utils.js b/source/js/utils.js index 2bc2c8495..0e49f2e81 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -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();