Skip to content

Commit c67065b

Browse files
committed
fix bug
1 parent 38263f1 commit c67065b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

layout/_partial/scripts/index.ejs

+2-7
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,8 @@
6161
6262
// 从 butterfly 和 volantis 获得灵感
6363
loadScript: (src, opt) => new Promise((resolve, reject) => {
64-
// 判断是否存在
65-
let el = document.querySelector("script[src='" + src + "']")
66-
if (el !== null) {
67-
return
68-
}
69-
var script = document.createElement('script')
70-
script.src = src
64+
var script = document.createElement('script');
65+
script.src = src;
7166
if (opt) {
7267
for (let key of Object.keys(opt)) {
7368
script[key] = opt[key]

0 commit comments

Comments
 (0)