diff --git a/static/js/mainscreen.js b/static/js/mainscreen.js index fa6ab1e..d9ed626 100644 --- a/static/js/mainscreen.js +++ b/static/js/mainscreen.js @@ -147,7 +147,7 @@ function update_lights(lights) { } var ws = null; -var secure = new Boolean(document.location.protocol.match(/^https/i)); +var secure = (new Boolean(document.location.protocol.match(/^https/i))).valueOf(); var curr_question = 1; function start() { diff --git a/static/js/quizconsole.js b/static/js/quizconsole.js index c923fdb..e2f6d00 100644 --- a/static/js/quizconsole.js +++ b/static/js/quizconsole.js @@ -73,7 +73,7 @@ function show_question(question, answer, trivia, options) { } var ws = null; -var secure = new Boolean(document.location.protocol.match(/^https/i)); +var secure = (new Boolean(document.location.protocol.match(/^https/i)).valueOf()); function start() { console.log('Connecting to game engine...');