Skip to content

Commit

Permalink
Fix non-secure websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosefr committed Jun 3, 2020
1 parent e5df2df commit 87385b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/mainscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion static/js/quizconsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down

0 comments on commit 87385b3

Please sign in to comment.