From 776719cf45317a26a5f30d91c278a5962f5a7c4c Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 13 May 2022 15:09:04 +0200 Subject: [PATCH] set title to filename --- web/App.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/App.svelte b/web/App.svelte index 025af72..bde7b41 100644 --- a/web/App.svelte +++ b/web/App.svelte @@ -6,7 +6,6 @@ const slug = window.location.pathname.split("/").pop(); let notFound = false; - let component = null; let contentType: string; let filename: string; @@ -28,6 +27,8 @@ } filename = match[1]; } + + document.title = filename; }