fix edge compatibility in docker config file (wss:// --> wss: ). also clean up hash removal of url and add docker.yml to the files to be deployed by capistrano

This commit is contained in:
Ralf Teusner
2017-03-07 18:09:31 +01:00
parent c474ac3d87
commit dec45880b9
3 changed files with 7 additions and 5 deletions

View File

@ -6,8 +6,10 @@ CodeOceanEditorWebsocket = {
sockURL.pathname = url;
sockURL.protocol = '<%= DockerClient.config['ws_client_protocol'] %>';
//return the URL, but strip last # if there is one...
return sockURL.toString().replace(/#$/,'');
// strip anchor if it is in the url
sockURL.hash = ''
return sockURL.toString();
},
initializeSocket: function(url) {