Fixed noVNC when running on non-standard HTTPS port.
Ylian Saint-Hilaire committed
Jun 7, 2020 at 00:27 UTC
0e5c69368717f24bcdbcee10dac69b8f975e2eb8
1 file changed
+1
-1
views/default.handlebars
+1
-1
@@ -2197,7 +2197,7 @@
2197
}
2198
}
2199
if (message.tag == 'novnc') {
2200
- var vncurl = window.location.origin + domainUrl + 'novnc/vnc.html?ws=wss%3A%2F%2F' + window.location.hostname + '%2Fmeshrelay.ashx%3Fauth%3D' + message.cookie + '&show_dot=1';
2200
+ var vncurl = window.location.origin + domainUrl + 'novnc/vnc.html?ws=wss%3A%2F%2F' + window.location.host + '%2Fmeshrelay.ashx%3Fauth%3D' + message.cookie + '&show_dot=1';
2201
var node = getNodeFromId(message.nodeid);
2202
if (node != null) { vncurl += '&name=' + encodeURIComponentEx(node.name); }
2203
var newWindow = window.open(vncurl, 'mcnovnc/' + message.nodeid);