From 762b55274676189629d120cea8947ed300d6403b Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Wed, 20 Jul 2022 10:30:34 -0400 Subject: [PATCH] default light --- assets/js/darkmode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/darkmode.js b/assets/js/darkmode.js index 43154c300..1daceb026 100644 --- a/assets/js/darkmode.js +++ b/assets/js/darkmode.js @@ -1,4 +1,5 @@ -const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark' +// const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark' +const userPref = 'light' const currentTheme = localStorage.getItem('theme') ?? userPref if (currentTheme) {