diff --git a/popup/events.js b/popup/events.js index eb06e0ad..3f165b15 100644 --- a/popup/events.js +++ b/popup/events.js @@ -154,7 +154,7 @@ const Events = { }; window.on('keydown', box._onkeydown); moveFocus(box, 0); - Events.hideModal(oldBox); + if (oldBox) Events.hideModal(oldBox); }, async toggleState(event) {