From b1602c832af61fc2397750c3b3599d67158838b2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 31 Oct 2024 12:58:42 +0000 Subject: [PATCH] fix(style): dark icon on light theme, oops --- OliverBooth/Pages/Shared/_Layout.cshtml | 4 ++-- src/ts/app.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OliverBooth/Pages/Shared/_Layout.cshtml b/OliverBooth/Pages/Shared/_Layout.cshtml index ea92463..22bcae4 100644 --- a/OliverBooth/Pages/Shared/_Layout.cshtml +++ b/OliverBooth/Pages/Shared/_Layout.cshtml @@ -48,8 +48,8 @@ } - - + + diff --git a/src/ts/app.ts b/src/ts/app.ts index 319f8e1..bd3ca1e 100644 --- a/src/ts/app.ts +++ b/src/ts/app.ts @@ -74,7 +74,7 @@ declare const lucide: any; const darkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches; const favicon = document.querySelector("link[rel~=\"icon\"]"); // @ts-ignore - favicon.href = `/img/${darkMode ? "favicon-dark.png" : "favicon.png"}`; + favicon.href = `/img/${darkMode ? "favicon.png" : "favicon-dark.png"}`; } setFavicon();