From e7d649636ce6dbf1cc908ab7e51f29cb89aaa818 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 14 Aug 2018 15:37:26 +0300 Subject: [PATCH] spice problem correction --- console/templates/console-spice-full.html | 2 +- console/templates/console-spice-lite.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)) {