This commit is contained in:
parent
5b7b8503cd
commit
00738b90c2
|
@ -171,10 +171,12 @@ export class ApDbResolverService implements OnApplicationShutdown {
|
||||||
keys.find(x => {
|
keys.find(x => {
|
||||||
try {
|
try {
|
||||||
const url = new URL(x.keyId);
|
const url = new URL(x.keyId);
|
||||||
if (
|
const path = url.pathname.split('/').pop()?.toLowerCase();
|
||||||
url.hash.toLowerCase().includes('main') ||
|
if (url.hash) {
|
||||||
url.pathname.split('/').pop()?.toLowerCase().includes('main')
|
if (url.hash.toLowerCase().includes('main')) {
|
||||||
) {
|
return true;
|
||||||
|
}
|
||||||
|
} else if (path?.includes('main') || path === 'publickey') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch { /* noop */ }
|
} catch { /* noop */ }
|
||||||
|
|
Loading…
Reference in New Issue