"share note" url
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Martti Malmi 2023-10-17 22:02:41 +03:00
parent 2c7878ac7f
commit 700db8f62c
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ export function NoteContextMenu({ ev, ...props }: NosteContextMenuProps) {
}
async function share() {
const link = NostrLink.fromEvent(ev).encode();
const url = `${window.location.protocol}//${window.location.host}/e/${link}`;
const link = NostrLink.fromEvent(ev, CONFIG.eventLinkPrefix).encode();
const url = `${window.location.protocol}//${window.location.host}/${link}`;
if ("share" in window.navigator) {
await window.navigator.share({
title: "Snort",