mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
move wasm.js into separate file
This commit is contained in:
parent
929dfcca24
commit
cb395552c8
9 changed files with 33 additions and 7 deletions
17
src/drm.ts
Normal file
17
src/drm.ts
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue