dev_library
hjm 6 years ago
parent cb0010913f
commit 5584fec831

@ -88,11 +88,11 @@ class VNCDisplay extends Component {
status("Connecting");
// Build the websocket URL used to connect
let url;
// if (window.location.protocol === "https:") {
// url = 'wss';
// } else {
if (vnc_url.indexOf("https:") != -1) {
url = 'wss';
} else {
url = 'ws';
// }
}
url += '://' + host;
if(port) {
url += ':' + port;

Loading…
Cancel
Save