Commit 7fdbc180 authored by Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt Committed by Paul Gascou-Vaillancourt

Move arkoseInitialized assignment to initArkoseLabs

parent 03071ef3
...@@ -108,8 +108,6 @@ export default { ...@@ -108,8 +108,6 @@ export default {
} = await needsArkoseLabsChallenge(this.username); } = await needsArkoseLabsChallenge(this.username);
if (result) { if (result) {
this.arkoseInitialized = true;
await this.initArkoseLabs(); await this.initArkoseLabs();
} }
} catch (e) { } catch (e) {
...@@ -123,6 +121,8 @@ export default { ...@@ -123,6 +121,8 @@ export default {
} }
}, },
async initArkoseLabs() { async initArkoseLabs() {
this.arkoseInitialized = true;
const enforcement = await initArkoseLabsScript({ publicKey: this.publicKey }); const enforcement = await initArkoseLabsScript({ publicKey: this.publicKey });
enforcement.setConfig({ enforcement.setConfig({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment