mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
update rspack
This commit is contained in:
parent
cb395552c8
commit
fc8738b239
3 changed files with 54 additions and 25 deletions
17
src/drm.ts
17
src/drm.ts
|
@ -1,17 +0,0 @@
|
|||
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