Error in http/https detection.

window.location.protocol return "https:", not "https://"
This commit is contained in:
hexrus
2019-08-09 09:53:55 +03:00
committed by GitHub
parent b3600f8a14
commit 00ec32456c

View File

@@ -16,7 +16,7 @@ var Server = /** @class */ (function () {
case "http:": case "http:":
this.protocol = "ws://"; this.protocol = "ws://";
break; break;
case "https://": case "https:":
this.protocol = "wss://"; this.protocol = "wss://";
break; break;
} }