From b1a264dcff79523dd74977964455f62385a2276a Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sat, 3 Feb 2024 20:05:32 -0800 Subject: [PATCH] Fix value for protocol check --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index b5bf5d95..1c054a29 100644 --- a/js/index.js +++ b/js/index.js @@ -32,7 +32,7 @@ function status(text) { // Construct the websockify websocket URL we want to connect to let websockifyUrl = new URL("websockify", window.location); -websockifyUrl.protocol = window.location.protocol === "https" ? "wss" : "ws"; +websockifyUrl.protocol = window.location.protocol === "https:" ? "wss" : "ws"; // Creating a new RFB object will start a new connection const rfb = new RFB(