move wasm.js into separate file

This commit is contained in:
velzie 2024-08-02 17:30:29 -04:00
parent 929dfcca24
commit cb395552c8
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
9 changed files with 33 additions and 7 deletions

17
src/drm.ts Normal file
View file

@ -0,0 +1,17 @@
import { addListener, launch } from "devtools-detector";
function jail() {
setInterval(() => {
console.error("SCRAMJET ERROR");
debugger;
}, 0);
}
addListener((open) => open && jail());
if (!["http://localhost:1337"].includes(window.location.origin)) {
jail();
}
launch();