mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix #1233: check modeState exists
This commit is contained in:
parent
be2618c352
commit
393a4b033e
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ function pushKey(ke) {
|
|||
modeState.filter += ke.key
|
||||
modeState.filterFunc(modeState.filter)
|
||||
|
||||
if (!modeState.activeHints.length) {
|
||||
if (modeState && !modeState.activeHints.length) {
|
||||
// There are no more active hints, undo the change to the filter
|
||||
modeState.filter = originalFilter
|
||||
modeState.filterFunc(modeState.filter)
|
||||
|
|
Loading…
Add table
Reference in a new issue