Fixes issue with incorrect HTTPS detection for reverse proxies.

This commit is contained in:
Herbert Wolverson 2025-01-02 14:26:29 -06:00
parent 758035d864
commit b06bd1cfbe

View File

@ -2,7 +2,7 @@
let ws = null;
export function ws_proto() {
if (window.location.protocl === 'https') {
if (window.location.protocol.startsWith('https')) {
return "wss://";
} else {
return "ws://";