summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMarko Pušnik <marko.pusnik@guru.si>2015-10-06 18:59:42 +0200
committerMarko Pušnik <marko.pusnik@guru.si>2015-10-06 18:59:42 +0200
commit622c098d2a825d4fe63a84f1244db2fc5ea5f0c8 (patch)
treef08798c62c3dd559bfc6d7553406aa45fa13e770 /js
parent0b2485f393bcc47dcf895044c410b2c8784af432 (diff)
wss
Diffstat (limited to 'js')
-rw-r--r--js/codeq/init.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/codeq/init.js b/js/codeq/init.js
index b7e903c..dfd9253 100644
--- a/js/codeq/init.js
+++ b/js/codeq/init.js
@@ -88,13 +88,14 @@
// we are a web app
$(window).on('load', Boot);
codeq.ajaxPrefix = location.pathname;
- codeq.eioHost= 'ws://' + location.host;
+ if (location.protocol == 'https:') codeq.eioHost= 'wss://' + location.host;
+ else codeq.eioHost= 'ws://' + location.host;
}
else {
// we are a phonegap native app
document.addEventListener("deviceready", Boot, false);
codeq.ajaxPrefix = 'http://codeq.si/';
- codeq.eioHost= 'ws://codeq.si';
+ codeq.eioHost= 'wss://codeq.si';
}
})();