fix: load script
This commit is contained in:
parent
4b91be54a6
commit
e142c7a3db
|
@ -83,7 +83,7 @@ export default [
|
||||||
format: "iife",
|
format: "iife",
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
banner: getBannerText,
|
banner: getBannerText,
|
||||||
intro: "const d = document.createElement('img');d.style.display = 'none';d.src='data:';d.setAttribute('onloadstart', 'this.remove();(' + function () {",
|
intro: "const d =document.createElement('img');d.style.display='none';d.src='data:';d.once=false;d.setAttribute('onloadstart','if(this.once)return;this.once=true;this.remove();(' + function () {",
|
||||||
outro: "}.toString() + ')()');document.body.prepend(d)"
|
outro: "}.toString() + ')()');document.body.prepend(d)"
|
||||||
},
|
},
|
||||||
plugins,
|
plugins,
|
||||||
|
|
Loading…
Reference in New Issue