WIP: broken - attempt to fix mode indicator #4738

This commit is contained in:
Oliver Blanthorn 2023-07-15 22:50:18 +02:00
parent 2eaba7e4ce
commit bec715397e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -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) {