Skip to content
Snippets Groups Projects
Commit f7b4cc8a authored by Jonas Leder's avatar Jonas Leder
Browse files

fix ws with https

parent 7e3c27d4
Branches master
No related tags found
No related merge requests found
Pipeline #7605 passed
......@@ -31,7 +31,8 @@ function ws_base_url() {
/*
websockets base url
*/
let base = `ws://${window.location.host}`;
let wsType = window.location.protocol == "https:" ? "wss" : "ws";
let base = `${wsType}://${window.location.host}`;
if (ENV.APP.WS_HOST) {
// user can override BACKEND HOST by providing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment