mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
WIP: broken - attempt to fix mode indicator #4738
This commit is contained in:
parent
2eaba7e4ce
commit
bec715397e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue