mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -04:00
17 lines
285 B
TypeScript
17 lines
285 B
TypeScript
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();
|