From ea58b46dff2754cf8404328cdb04a8e3aa46632f Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Sun, 23 Jul 2023 04:40:58 +0530 Subject: [PATCH] remark42 theme toggle changes --- _includes/comments/remark42.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/comments/remark42.html b/_includes/comments/remark42.html index f17e91d..a986573 100644 --- a/_includes/comments/remark42.html +++ b/_includes/comments/remark42.html @@ -27,9 +27,9 @@ if (targetDiv != null) { targetDiv.addEventListener("click", () => { if (document.documentElement.hasAttribute("data-mode")) { - window.REMARK42.changeTheme('dark'); - } else { window.REMARK42.changeTheme('light'); + } else { + window.REMARK42.changeTheme('dark'); } }) }