This commit is contained in:
parent
2c7878ac7f
commit
700db8f62c
@ -45,8 +45,8 @@ export function NoteContextMenu({ ev, ...props }: NosteContextMenuProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function share() {
|
async function share() {
|
||||||
const link = NostrLink.fromEvent(ev).encode();
|
const link = NostrLink.fromEvent(ev, CONFIG.eventLinkPrefix).encode();
|
||||||
const url = `${window.location.protocol}//${window.location.host}/e/${link}`;
|
const url = `${window.location.protocol}//${window.location.host}/${link}`;
|
||||||
if ("share" in window.navigator) {
|
if ("share" in window.navigator) {
|
||||||
await window.navigator.share({
|
await window.navigator.share({
|
||||||
title: "Snort",
|
title: "Snort",
|
||||||
|
Loading…
Reference in New Issue
Block a user