a new start
This commit is contained in:
20
_includes/scripts/nomodule.min.js
vendored
Normal file
20
_includes/scripts/nomodule.min.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
(() => {
|
||||
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