Error in http/https detection.
window.location.protocol return "https:", not "https://"
This commit is contained in:
1 parent
b3600f8a14
commit
00ec32456c
1 file changed
+1
-1
@@ -16,7 +16,7 @@ var Server = /** @class */ (function () {
|
||||
case "http:":
|
||||
this.protocol = "ws://";
|
||||
break;
|
||||
case "https://":
|
||||
case "https:":
|
||||
this.protocol = "wss://";
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user