simplify websocket configuration even more

This commit is contained in:
ansuz
2019-12-23 17:39:13 -05:00
parent 67cde69120
commit 97bc793ca8
2 changed files with 9 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ define([
var Config = {};
Config.getWebsocketURL = function (origin) {
var path = ApiConfig.websocketPath;
var path = ApiConfig.websocketPath || '/cryptpad_websocket';
if (/^ws{1,2}:\/\//.test(path)) { return path; }
var l = window.location;