mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix SCRIPT1028 caused by async (#852)
This commit is contained in:
parent
77adbf59d8
commit
da4712e78d
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user