let siteUrl = $derived.by(() => {

const urlTag = note.tags.find(

(tag) => tag[0] == "d" && tag.length > 1

)?.[1];

if (!urlTag) return;

if (!urlTag?.startsWith("http")) {

return `https://${urlTag}`;

}

});これでいい?

Reply to this note

Please Login to reply.

Discussion

ええで