|
|
@ -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;
|
|
|
|