Skip to content

Commit

Permalink
Fix SCRIPT1028 caused by async
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere authored Nov 30, 2024
1 parent 77adbf5 commit daa3db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@ NexT.utils = {
condition = false,
attributes: {
id = '',
async = false,
defer = false,
crossOrigin = '',
dataset = {},
...otherAttributes
} = {},
parentNode = null
} = options;
const async = options.async ?? false;
return new Promise((resolve, reject) => {
if (condition) {
resolve();
Expand Down

0 comments on commit daa3db5

Please sign in to comment.