`pathname` is not constant

pull/21833/head
Luke Barnard 2018-06-27 10:31:51 +01:00
parent 19e948155c
commit 483edb8211
1 changed files with 2 additions and 1 deletions

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://')) {