Use "this" instead of "globalThis" as global scope
globalThis was introduced only on newer versions of JS
This commit is contained in:
parent
6ee778d6b0
commit
1e99f6bcf6
2 changed files with 3 additions and 3 deletions
|
|
@ -177,7 +177,7 @@ async function runBotGuard(rawChallengeData) {
|
|||
|
||||
const botguard = await BotGuardClient.create({
|
||||
globalName: challengeData.globalName,
|
||||
globalObj: globalThis,
|
||||
globalObj: this,
|
||||
program: challengeData.program
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue