From 41b1bdc7370024a7fae1769c3dcbdc6b23565702 Mon Sep 17 00:00:00 2001 From: yatru <44513142+yatru@users.noreply.github.com> Date: Mon, 30 Aug 2021 10:58:07 +0200 Subject: [PATCH] Update webutil.js fixing the extra spaces --- app/webutil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/webutil.js b/app/webutil.js index ef25bf8c..1878c812 100644 --- a/app/webutil.js +++ b/app/webutil.js @@ -26,13 +26,13 @@ export function initLogging(level) { // 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 export function getQueryVar(name, defVal) { "use strict"; 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 (typeof defVal === 'undefined') { defVal = null; } if (match) {