simplify websocket configuration even more
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user