From 75db3601d0f59424e6cf85b8c6746e33f108359d Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 10 Feb 2021 19:47:07 +0300 Subject: [PATCH] fix #1177 regressed in fdbfb235 --- popup/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {