We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841bdcf commit f14de6fCopy full SHA for f14de6f
js/index.js
@@ -45,7 +45,7 @@ function status(text) {
45
// This page is served under the /desktopvnc/, and the websockify websocket is served
46
// under /desktop/ with the same base url as /desktopvnc/. We resolve it relatively
47
// this way.
48
-let websockifyUrl = new URL("../desktop/", window.location);
+let websockifyUrl = new URL(window.location.pathname.replace(/vnc\/+$/, "/"), window.location);
49
websockifyUrl.protocol = window.location.protocol === "https:" ? "wss" : "ws";
50
51
let retryCount = 0;
0 commit comments