From daa3db538bc32d31d69a85891158e8a1406f93f4 Mon Sep 17 00:00:00 2001 From: where where Date: Sat, 30 Nov 2024 17:33:49 +0800 Subject: [PATCH] Fix SCRIPT1028 caused by async --- 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();