IE10 compatible origin
This commit is contained in:
parent
768dd98a22
commit
38c78dcba1
2 changed files with 2 additions and 2 deletions
|
@ -422,7 +422,7 @@ class Wrapper
|
||||||
log: (args...) ->
|
log: (args...) ->
|
||||||
console.log "[Wrapper]", 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
|
if origin.indexOf("https:") == 0
|
||||||
proto = { ws: 'wss', http: 'https' }
|
proto = { ws: 'wss', http: 'https' }
|
||||||
|
|
|
@ -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) {
|
if (origin.indexOf("https:") === 0) {
|
||||||
proto = {
|
proto = {
|
||||||
|
|
Loading…
Reference in a new issue