Skip to content

Commit 87385b3

Browse files
committed
Fix non-secure websockets
1 parent e5df2df commit 87385b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/js/mainscreen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function update_lights(lights) {
147147
}
148148

149149
var ws = null;
150-
var secure = new Boolean(document.location.protocol.match(/^https/i));
150+
var secure = (new Boolean(document.location.protocol.match(/^https/i))).valueOf();
151151
var curr_question = 1;
152152

153153
function start() {

static/js/quizconsole.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function show_question(question, answer, trivia, options) {
7373
}
7474

7575
var ws = null;
76-
var secure = new Boolean(document.location.protocol.match(/^https/i));
76+
var secure = (new Boolean(document.location.protocol.match(/^https/i)).valueOf());
7777

7878
function start() {
7979
console.log('Connecting to game engine...');

0 commit comments

Comments
 (0)