Skip to content

Commit 69908d0

Browse files
committed
reserve strict eval hack for botguard
1 parent 97f2ff8 commit 69908d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/shared/eval.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function indirectEval(this: ScramjetClient, strict: boolean, js: any) {
2222
if (typeof js !== "string") return js;
2323

2424
let indirection: typeof eval;
25-
if (strict) {
26-
console.log("STRICT");
25+
if (this.url.hostname === "accounts.google.com") {
26+
console.log("USING STRICT EVAL - BOTGUARD");
2727
indirection = new Function(`
2828
"use strict";
2929
return eval;

0 commit comments

Comments
 (0)