Merge pull request #67 from nostrband/refactor/edit-app-info

Refactor/edit app info
This commit is contained in:
Nostr.Band
2024-02-15 09:19:19 +03:00
committed by GitHub
13 changed files with 68 additions and 44 deletions

View File

@@ -125,8 +125,7 @@ export const getReferrerAppUrl = () => {
if (!window.document.referrer) return ''
try {
const u = new URL(window.document.referrer.toLocaleLowerCase())
if (u.hostname != DOMAIN && !u.hostname.endsWith("."+DOMAIN))
return u.origin
if (u.hostname !== DOMAIN && !u.hostname.endsWith('.' + DOMAIN)) return u.origin
} catch {}
return ''
}