From 959873b3cd6993255e3f49caee7437fbb3848271 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 06 Mar 2023 07:19:27 +0000
Subject: [PATCH] fix icons loading recursively #95

---
 assets/js/mode.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/assets/js/mode.js b/assets/js/mode.js
index 036bac4..69aa92d 100644
--- a/assets/js/mode.js
+++ b/assets/js/mode.js
@@ -4,8 +4,7 @@
 
 function systemMode() {
   if (window.matchMedia) {
-    const prefers = prefersColor(dark);
-    return window.matchMedia(prefers).matches ? dark : light;
+    return window.matchMedia(prefersColor(dark)).matches ? dark : light;
   }
   return light;
 }

--
Gitblit v1.10.0