Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 27, 2024

Verified

This commit was signed with the committer’s verified signature.
ipmb Peter Baumgartner
1 parent a02c475 commit 606c93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 606c93e

Please sign in to comment.