pre_develop
hjm 6 years ago
parent 939b575871
commit 1ca7b99e7b

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

Loading…
Cancel
Save