Tweak usage page name extraction

This commit is contained in:
Jonathan Staab 2023-04-12 13:57:48 -05:00
parent c1857dea2d
commit 0e4420ccd6

View File

@ -79,7 +79,7 @@
// Remove identifying information, e.g. pubkeys, event ids, etc
const getPageName = () =>
location.pathname.slice(1).replace(/(npub|nprofile|note|nevent)[^\/]+/g, (_, m) => `<${m}>`)
location.pathname.slice(1).replace(/(npub|nprofile|note|nevent)1[^\/]+/g, (_, m) => `<${m}>`)
// Log usage on navigate
const unsubHistory = globalHistory.listen(({location}) => {