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

Function checkTk

src/main.ts:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42});
43
44function checkTk () {
45 if (!config.md5) return false;
46 // 启用了 md5
47 const tk = getUrlParam(config.tkName);
48 return md5(tk) === config.md5; // 命中tk
49}
50
51const options = checkScriptUse();
52if (options) {

Callers 1

main.tsFile · 0.85

Calls 1

getUrlParamFunction · 0.90

Tested by

no test coverage detected