diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index 7dc2db756..ac2cdeb5d 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -607,7 +607,7 @@ where id in %s""" def _on_preview_closed(self) -> None: if self.editor.web: - self.editor.web.eval("$('#previewButton').removeClass('highlighted')") + self.editor.web.eval("document.getElementById('previewButton').classList.remove('highlighted')") self._previewer = None # Card deletion