diff --git a/frontend/index.html b/frontend/index.html index 49662dd..4eb9bda 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -812,12 +812,14 @@

Contact

console.log("Dynamic Config result is", data); //create token and token url - if(data.opcode?.autogen) { //if the autogen property is set, use it + if(typeof data.opcode?.autogen !== 'undefined') { //if the autogen property is set, use it + console.log("found opcode setting, is", data.opcode.autogen); OPCODE_AUTOGEN = data.opcode?.autogen; } else { //else fall back to program vs study + console.log("falling back to program vs study", data.intro.program_or_study); OPCODE_AUTOGEN = data.intro.program_or_study == "study"; } - + if (OPCODE_AUTOGEN) { validateAndGenerateToken(); } else {