Use "this" instead of "globalThis" as global scope

globalThis was introduced only on newer versions of JS
This commit is contained in:
Stypox 2025-02-04 10:22:10 +01:00
parent 6ee778d6b0
commit 1e99f6bcf6
2 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ async function runBotGuard(rawChallengeData) {
const botguard = await BotGuardClient.create({
globalName: challengeData.globalName,
globalObj: globalThis,
globalObj: this,
program: challengeData.program
});