From dc92ea8b050ce665cc36f244c4b395ba1c253963 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Thu, 12 Dec 2024 17:24:12 -0500 Subject: [PATCH] iframes are not self-closing --- src/lib/components/documents/Share.svelte | 6 +++--- src/lib/components/projects/ProjectShare.svelte | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/documents/Share.svelte b/src/lib/components/documents/Share.svelte index a2872530..ec8f7136 100644 --- a/src/lib/components/documents/Share.svelte +++ b/src/lib/components/documents/Share.svelte @@ -86,13 +86,13 @@ case "document": permalink = canonicalUrl(document); embedSrc = embedUrl(document, embedUrlParams); - iframe = ``; break; case "page": permalink = pageUrl(document, page); embedSrc = canonicalPageUrl(document, page); embedSrc.searchParams.set("embed", "1"); - iframe = ``; break; case "note": const noteObject = document.notes?.find( @@ -102,7 +102,7 @@ permalink = noteUrl(document, noteObject); embedSrc = canonicalNoteUrl(document, noteObject); embedSrc.searchParams.set("embed", "1"); - iframe = ``; } break; } diff --git a/src/lib/components/projects/ProjectShare.svelte b/src/lib/components/projects/ProjectShare.svelte index 1fe8fad8..3d5f5c9a 100644 --- a/src/lib/components/projects/ProjectShare.svelte +++ b/src/lib/components/projects/ProjectShare.svelte @@ -28,11 +28,11 @@ $: permalink = canonicalUrl(project); $: embedSrc = embedUrl(project); - $: iframe = ``;
-
{#if isPrivate}