1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

spice problem correction

This commit is contained in:
catborise 2018-08-14 15:37:26 +03:00
parent edb59947af
commit e7d649636c
2 changed files with 4 additions and 4 deletions

View file

@ -235,7 +235,7 @@
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();
</script>

View file

@ -111,7 +111,7 @@
// By default, use the host and port of server that served this file
//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
// if your web server has a reverse proxy to relay the WebSocket
@ -126,7 +126,7 @@
}
}
//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:') {
scheme = "wss://";
}
@ -139,7 +139,7 @@
}
//password = spice_query_var('password', '');
password = '{{ console_passwd | safe }}' | spice_query_var('password', '');
password = '{{ console_passwd | safe }}';
path = spice_query_var('path', 'websockify');
if ((!host) || (!port)) {