diff --git a/static/js/oml.js b/static/js/oml.js index 12db1ef..021c534 100644 --- a/static/js/oml.js +++ b/static/js/oml.js @@ -219,7 +219,7 @@ function loadOML(browserSupported) { window.oml = Ox.App({ name: 'oml', - socket: 'ws://' + document.location.host + '/ws', + socket: document.location.protocol.replace('http', 'ws') + '//' + document.location.host + '/ws', url: '/api/' }).bindEvent({ load: function(data) {