mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #688 from glutanimate/fix-js-eval-when-setting-content-via-url
Fix premature JS evaluation in views that set content via URL
This commit is contained in:
commit
f45f9b2d34
1 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@ class AnkiWebView(QWebEngineView):
|
|||
if oldFocus:
|
||||
oldFocus.setFocus()
|
||||
|
||||
def load(self, url: QUrl):
|
||||
# allow queuing actions when loading url directly
|
||||
self._domDone = False
|
||||
super().load(url)
|
||||
|
||||
def zoomFactor(self) -> float:
|
||||
# overridden scale factor?
|
||||
webscale = os.environ.get("ANKI_WEBSCALE")
|
||||
|
|
Loading…
Reference in a new issue