pathname
is not constant
This commit is contained in:
parent
19e948155c
commit
483edb8211
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ function getRedactedHash(hash) {
|
||||||
// Return the current origin, path and hash separated with a `/`. This does
|
// Return the current origin, path and hash separated with a `/`. This does
|
||||||
// not include query parameters.
|
// not include query parameters.
|
||||||
function getRedactedUrl() {
|
function getRedactedUrl() {
|
||||||
const { origin, pathname, hash } = window.location;
|
const { origin, hash } = window.location;
|
||||||
|
let { pathname } = window.location;
|
||||||
|
|
||||||
// Redact paths which could contain unexpected PII
|
// Redact paths which could contain unexpected PII
|
||||||
if (origin.startsWith('file://')) {
|
if (origin.startsWith('file://')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue