From 393a4b033eca835c68f90ce875ac822d2fc04446 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Thu, 13 Dec 2018 14:19:36 +0000 Subject: [PATCH] Fix #1233: check modeState exists --- src/content/hinting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/hinting.ts b/src/content/hinting.ts index 86f0cfaa..e8740447 100644 --- a/src/content/hinting.ts +++ b/src/content/hinting.ts @@ -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)