pathname is not constant

This commit is contained in:
Luke Barnard 2018-06-27 10:31:51 +01:00
parent 19e948155c
commit 483edb8211

View file

@ -42,7 +42,8 @@ function getRedactedHash(hash) {
// Return the current origin, path and hash separated with a `/`. This does
// not include query parameters.
function getRedactedUrl() {
const { origin, pathname, hash } = window.location;
const { origin, hash } = window.location;
let { pathname } = window.location;
// Redact paths which could contain unexpected PII
if (origin.startsWith('file://')) {