From bec715397e6878780d209ff612fe803f87e1485d Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sat, 15 Jul 2023 22:50:18 +0200 Subject: [PATCH] WIP: broken - attempt to fix mode indicator #4738 --- src/content.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/content.ts b/src/content.ts index 2147a4a7..ba46f3d5 100644 --- a/src/content.ts +++ b/src/content.ts @@ -408,6 +408,14 @@ config.getAsync("modeindicator").then(mode => { statusIndicator.classList.remove("TridactylInvisble") } }) + + config.addChangeListener("modeindicator", (_, newVal) => { + if (newVal !== "true") { + statusIndicator.classList.add("TridactylInvisible") + } else { + statusIndicator.classList.remove("TridactylInvisble") + } + }) }) function protectSlash(e) {