CONFIG.eventLinkPrefix

This commit is contained in:
Martti Malmi
2023-10-17 12:59:25 +03:00
parent ca18cf25e3
commit d9bd198e8d
23 changed files with 53 additions and 39 deletions

View File

@ -151,7 +151,7 @@ export function NoteInner(props: NoteProps) {
return;
}
const link = NostrLink.fromEvent(eTarget);
const link = NostrLink.fromEvent(eTarget, CONFIG.eventLinkPrefix);
// detect cmd key and open in new tab
if (e.metaKey) {
window.open(`/${link.encode()}`, "_blank");