simplify server websocket configuration

This commit is contained in:
ansuz
2019-12-23 17:01:00 -05:00
parent 31ec784de6
commit 2dfbb522b0
3 changed files with 0 additions and 14 deletions

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; }