From 52a7644be3691f5559875119635deb3e947928a8 Mon Sep 17 00:00:00 2001 From: sylhare Date: Fri, 8 Dec 2023 08:42:56 -0500 Subject: [PATCH] Fix typo --- assets/js/partials/dark-mode.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/partials/dark-mode.js b/assets/js/partials/dark-mode.js index c95421bba9..9dddc99bbc 100644 --- a/assets/js/partials/dark-mode.js +++ b/assets/js/partials/dark-mode.js @@ -1,13 +1,13 @@ /* @preserve Dark mode Init */ /* - * There are two color palettes on CSS for the data-theme: 'light' and 'dark'. - * Initially the script check if a theme is set in session storage and + * There are two colour palettes on CSS for the data-theme: 'light' and 'dark'. + * Initially the script checks if a theme is set in session storage and * alternatively listens to a MediaQuery callback looking for "prefers-color-scheme: dark". */ const themeButton = { - 'light': '', - 'dark': '' + 'light': ' Dark', + 'dark': ' Light' } const currentTheme = () => localStorage.getItem('theme')