Skip to content

Commit 190d051

Browse files
committed
Check if firstHint is null in hints.js
When hints are opened and closed too quickly it throws 'TypeError: this._tabNavigation[firstHint] is undefined'. Can be reproduced by hitting f followed by <Esc>.
1 parent 8a9e718 commit 190d051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/content/hints.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@ const Hints = Module("hints", {
496496
}
497497
}
498498

499+
if (firstHint === null) {
500+
return false;
501+
}
502+
499503
this._tabNavigation[firstHint].prev = lastHint;
500504
this._tabNavigation[lastHint].next = firstHint;
501505

0 commit comments

Comments
 (0)