IE10 compatible origin

This commit is contained in:
HelloZeroNet 2016-04-20 23:22:39 +02:00
parent 768dd98a22
commit 38c78dcba1
2 changed files with 2 additions and 2 deletions

View file

@ -422,7 +422,7 @@ class Wrapper
log: (args...) ->
console.log "[Wrapper]", args...
origin = window.server_url or window.location.origin
origin = window.server_url or window.location.href.replace(/(\:\/\/.*?)\/.*/, "$1")
if origin.indexOf("https:") == 0
proto = { ws: 'wss', http: 'https' }

View file

@ -1323,7 +1323,7 @@ jQuery.extend( jQuery.easing,
})();
origin = window.server_url || window.location.origin;
origin = window.server_url || window.location.href.replace(/(\:\/\/.*?)\/.*/, "$1");
if (origin.indexOf("https:") === 0) {
proto = {