parent
c581d78453
commit
41b1bdc737
|
|
@ -32,7 +32,7 @@ export function initLogging(level) {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue