Fix nil config resulting in failing tests
This commit is contained in:
@ -4,7 +4,7 @@ CodeOceanEditorWebsocket = {
|
|||||||
createSocketUrl: function(url) {
|
createSocketUrl: function(url) {
|
||||||
var sockURL = new URL(window.location);
|
var sockURL = new URL(window.location);
|
||||||
sockURL.pathname = url;
|
sockURL.pathname = url;
|
||||||
sockURL.protocol = '<%= DockerClient.config['ws_client_protocol'].match(/(\w+):*\/*/)&.to_a&.at(1) %>:';
|
sockURL.protocol = '<%= DockerClient.config['ws_client_protocol']&.match(/(\w+):*\/*/)&.to_a&.at(1) %>:';
|
||||||
|
|
||||||
// strip anchor if it is in the url
|
// strip anchor if it is in the url
|
||||||
sockURL.hash = '';
|
sockURL.hash = '';
|
||||||
|
Reference in New Issue
Block a user