From 606c93e2805e73dd1a66ff07ee13c7fdef575165 Mon Sep 17 00:00:00 2001 From: KishiTheMechanic Date: Sun, 27 Oct 2024 08:58:18 +0100 Subject: [PATCH] fix --- mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.ts b/mod.ts index 9334ee6..206aff1 100644 --- a/mod.ts +++ b/mod.ts @@ -10,7 +10,7 @@ * If none is set, it defaults to dark mode or follows the system's dark mode preference. * @type {string} */ -export const defaultDarkModeScript = ` +export const defaultDarkModeScript: string = ` function applyDefaultTheme(change) { if (change === 'auto') delete localStorage.theme; else if (change === 'on') localStorage.theme = 'dark'; @@ -30,7 +30,7 @@ export const defaultDarkModeScript = ` * If none is set, it defaults to light mode or follows the system's dark mode preference. * @type {string} */ -export const defaultLightModeScript = ` +export const defaultLightModeScript: string = ` function applyDefaultTheme(change) { if (change === 'auto') delete localStorage.theme; else if (change === 'on') localStorage.theme = 'dark';