From a85cd8b9bf09cf6f455d771d0283ae44d654ab9b Mon Sep 17 00:00:00 2001 From: j Date: Fri, 9 Aug 2024 15:40:19 +0200 Subject: [PATCH] use wss if site was loaded via https --- static/js/oml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {