diff --git a/console/templates/console-spice-full.html b/console/templates/console-spice-full.html index 52a58f1..587e7a9 100644 --- a/console/templates/console-spice-full.html +++ b/console/templates/console-spice-full.html @@ -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(); diff --git a/console/templates/console-spice-lite.html b/console/templates/console-spice-lite.html index 6955363..d70f798 100644 --- a/console/templates/console-spice-lite.html +++ b/console/templates/console-spice-lite.html @@ -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)) {