mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
spice problem correction
This commit is contained in:
parent
edb59947af
commit
e7d649636c
2 changed files with 4 additions and 4 deletions
|
@ -235,7 +235,7 @@
|
||||||
DEBUG > 0 && console.log('SPICE port', event.detail.channel.portName, 'event data:', event.detail.spiceEvent);
|
DEBUG > 0 && console.log('SPICE port', event.detail.channel.portName, 'event data:', event.detail.spiceEvent);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
document.getElementById("fullscreen_button").addEventListener('click', fullscreen;
|
document.getElementById("fullscreen_button").addEventListener('click', fullscreen);
|
||||||
|
|
||||||
connect();
|
connect();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
|
|
||||||
// By default, use the host and port of server that served this file
|
// By default, use the host and port of server that served this file
|
||||||
//host = spice_query_var('host', window.location.hostname);
|
//host = spice_query_var('host', window.location.hostname);
|
||||||
host = '{{ ws_host| safe }}'| spice_query_var('host', window.location.hostname);
|
host = '{{ ws_host| safe }}';
|
||||||
|
|
||||||
// Note that using the web server port only makes sense
|
// Note that using the web server port only makes sense
|
||||||
// if your web server has a reverse proxy to relay the WebSocket
|
// if your web server has a reverse proxy to relay the WebSocket
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//port = spice_query_var('port', default_port);
|
//port = spice_query_var('port', default_port);
|
||||||
port = '{{ ws_port| safe }}' | spice_query_var('port', default_port);
|
port = '{{ ws_port| safe }}';
|
||||||
if (window.location.protocol == 'https:') {
|
if (window.location.protocol == 'https:') {
|
||||||
scheme = "wss://";
|
scheme = "wss://";
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//password = spice_query_var('password', '');
|
//password = spice_query_var('password', '');
|
||||||
password = '{{ console_passwd | safe }}' | spice_query_var('password', '');
|
password = '{{ console_passwd | safe }}';
|
||||||
path = spice_query_var('path', 'websockify');
|
path = spice_query_var('path', 'websockify');
|
||||||
|
|
||||||
if ((!host) || (!port)) {
|
if ((!host) || (!port)) {
|
||||||
|
|
Loading…
Reference in a new issue