From c89c719ad2febdf0ef6a6bc359dc813df290efb1 Mon Sep 17 00:00:00 2001 From: yatru <44513142+yatru@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:01:50 +0200 Subject: [PATCH] Update vnc_lite.html fixing extra spaces --- vnc_lite.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vnc_lite.html b/vnc_lite.html index a9045c13..1f6e0300 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -111,19 +111,18 @@ function readQueryVariable(name, defaultValue) { // A URL with a query parameter can look like this (But will most probably get logged on the http server): // https://www.example.com?myqueryparam=myvalue - // + // // For privacy (Using a hastag #, the parameters will not be sent to the server) // the url can be requested in the following way: // https://www.example.com#myqueryparam=myvalue&password=secreatvalue - // + // // Even Mixing public and non public parameters will work: // https://www.example.com?nonsecretparam=example.com#password=secreatvalue - // // // Note that we use location.href instead of location.search // because Firefox < 53 has a bug w.r.t location.search const re = new RegExp('.*[?&]' + name + '=([^&#]*)'), - match = ''.concat(document.location.href," ", window.location.hash).match(re); + match = ''.concat(document.location.href, " ", window.location.hash).match(re); if (match) { // We have to decode the URL since want the cleartext value