mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 09:01:39 -05:00
WIP: broken - attempt to fix mode indicator #4738
This commit is contained in:
parent
2eaba7e4ce
commit
bec715397e
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue