feat: shadow
This commit is contained in:
21
_includes/scripts/nomodule.min.js
vendored
21
_includes/scripts/nomodule.min.js
vendored
@@ -1,20 +1 @@
|
||||
(() => {
|
||||
var t,
|
||||
n = document.createElement("script");
|
||||
!("noModule" in n) &&
|
||||
"onbeforeload" in n &&
|
||||
((t = !1),
|
||||
document.addEventListener(
|
||||
"beforeload",
|
||||
function (e) {
|
||||
if (e.target === n) t = !0;
|
||||
else if (!e.target.hasAttribute("nomodule") || !t) return;
|
||||
e.preventDefault();
|
||||
},
|
||||
!0,
|
||||
),
|
||||
(n.type = "module"),
|
||||
(n.src = "."),
|
||||
document.head.appendChild(n),
|
||||
n.remove());
|
||||
})();
|
||||
(()=>{var t,n=document.createElement("script");!("noModule"in n)&&"onbeforeload"in n&&(t=!1,document.addEventListener("beforeload",function(e){if(e.target===n)t=!0;else if(!e.target.hasAttribute("nomodule")||!t)return;e.preventDefault()},!0),n.type="module",n.src=".",document.head.appendChild(n),n.remove())})();
|
||||
|
||||
Reference in New Issue
Block a user