From a2dd4894cb44f1c2130eaaba6ccde62a8a4d3797 Mon Sep 17 00:00:00 2001 From: MiguVT Date: Mon, 16 Sep 2024 16:04:40 +0200 Subject: [PATCH] Added recover of theme on stopPlugin --- src/plugins/dayNightSwitcher/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/dayNightSwitcher/index.tsx b/src/plugins/dayNightSwitcher/index.tsx index dbd57a711..d0e2aeed3 100644 --- a/src/plugins/dayNightSwitcher/index.tsx +++ b/src/plugins/dayNightSwitcher/index.tsx @@ -55,7 +55,8 @@ function startPlugin() { } function stopPlugin() { - // Optionally reset to user's original theme (not implemented yet) + // reload discord theme + document.body.classList.remove("theme-light", "theme-dark"); } // Plugin export with metadata and settings