MCPcopy
hub / github.com/theajack/disable-devtool / detect

Method detect

src/detector/sub-detector/debugger.ts:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 detect () {
24 const date = now();
25 (() => {debugger;})();
26 if (now() - date > 100) {
27 this.onDevToolOpen();
28 }
29 }
30}

Callers

nothing calls this directly

Calls 1

nowFunction · 0.90

Tested by

no test coverage detected