simplify websocket configuration even more
This commit is contained in:
1 parent
67cde69120
commit
97bc793ca8
2 files changed
+9
-5
No files matched your search
@@ -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