diff --git a/aqt/webview.py b/aqt/webview.py index 0af406cfe..20498b15b 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -348,14 +348,14 @@ body {{ zoom: {}; background: {}; {} }} return False def _onBridgeCmd(self, cmd): - if not self._filterSet: - self.focusProxy().installEventFilter(self) - self._filterSet = True - if self._shouldIgnoreWebEvent(): print("ignored late bridge cmd", cmd) return + if not self._filterSet: + self.focusProxy().installEventFilter(self) + self._filterSet = True + if cmd == "domDone": self._domDone = True self._maybeRunActions()