mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-12 08:25:18 +00:00
console-spice-full fix scheme wss when accessing from https
This commit is contained in:
parent
53d7d1365d
commit
812bbb2ccc
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@
|
||||||
|
|
||||||
host = document.getElementById("host").value;
|
host = document.getElementById("host").value;
|
||||||
port = document.getElementById("port").value;
|
port = document.getElementById("port").value;
|
||||||
|
if (window.location.protocol == 'https:') {
|
||||||
|
scheme = "wss://";
|
||||||
|
}
|
||||||
password = document.getElementById("password").value;
|
password = document.getElementById("password").value;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue