simplify server websocket configuration

This commit is contained in:
ansuz committed 2019-12-23 17:01:00 -05:00
1 parent 31ec784de6
commit 2dfbb522b0
3 files changed
-14

No files matched your search

-1
View File
@@ -4,7 +4,6 @@ define([
var Config = {};
Config.getWebsocketURL = function (origin) {
if (!ApiConfig.websocketPath) { return ApiConfig.websocketURL; }
var path = ApiConfig.websocketPath;
if (/^ws{1,2}:\/\//.test(path)) { return path; }