Skip to content

Commit

Permalink
Fix value for protocol check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Feb 4, 2024
1 parent a018435 commit b1a264d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b1a264d

Please sign in to comment.