|
|
@ -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 (vnc_url.indexOf("https:") != -1) {
|
|
|
|
// url = 'wss';
|
|
|
|
url = 'wss';
|
|
|
|
// } else {
|
|
|
|
} else {
|
|
|
|
url = 'ws';
|
|
|
|
url = 'ws';
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
url += '://' + host;
|
|
|
|
url += '://' + host;
|
|
|
|
if(port) {
|
|
|
|
if(port) {
|
|
|
|
url += ':' + port;
|
|
|
|
url += ':' + port;
|
|
|
|