parent
41b1bdc737
commit
c89c719ad2
|
|
@ -119,11 +119,10 @@
|
|||
// 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue