Skip to content

Commit

Permalink
๐Ÿž fix: fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
็™ฝไบ‘่‹็‹— committed Jan 5, 2023
1 parent 6245f97 commit 79f32d6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions package/hexo-theme-async/source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,18 @@

const run = async (cdns, blocks) => {
try {
var data = [];
for (var i = 0; i < cdns.length; i++) {
data.push(await this.loadScript(cdns[i]));
await this.loadScript(cdns[i]);
}
blocks.forEach(code => {
this.runScriptBlock(code)
})
} catch (e) {
console.log(e);
}
}
run()
/* Promise.all(scriptCDN.map(item => this.loadScript(item))).then(_ => {
scriptBlock.forEach(code => {
this.runScriptBlock(code)
})
}) */

run(scriptCDN, scriptBlock)
}
};

Expand Down

0 comments on commit 79f32d6

Please sign in to comment.