Update webutil.js
Use history API's replaceState() method to hide query for privacy
This commit is contained in:
parent
370f21b117
commit
978b1023d1
|
|
@ -36,6 +36,7 @@ export function getQueryVar(name, defVal) {
|
|||
if (typeof defVal === 'undefined') { defVal = null; }
|
||||
|
||||
if (match) {
|
||||
history.replaceState(null, "", window.location.pathname.slice(1, 1));
|
||||
return decodeURIComponent(match[1]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue