More socket testing

This commit is contained in:
Rick Falkvinge
2017-01-12 20:46:34 +01:00
parent d3f482a9f1
commit 0f6d01e211
6 changed files with 39 additions and 10 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function _masterInitializeSocket(authenticationTicket) {
}
function getMasterSocketAddress() {
if (location.host.contains ("localhost")) { // Assume dev environment, go for sandbox socket
if (location.host.includes ("localhost")) { // Assume dev environment, go for sandbox socket
return 'ws://sandbox.swarmops.com/ws/Master';
} else {
var protocol = ('https:' == document.location.protocol ? 'wss://' : 'ws://');