Merge pull request #67 from nostrband/refactor/edit-app-info
Refactor/edit app info
This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user