mirror of
https://github.com/ankitects/anki.git
synced 2025-12-13 14:50:59 -05:00
Make sure to set domDone to False before loading URLs
Fixes an issue where JS would be evaluated prematurely in views directly loaded from URLs.
This commit is contained in:
parent
61017a2e21
commit
fe81da9b8a
1 changed files with 5 additions and 0 deletions
|
|
@ -300,6 +300,11 @@ class AnkiWebView(QWebEngineView):
|
||||||
if oldFocus:
|
if oldFocus:
|
||||||
oldFocus.setFocus()
|
oldFocus.setFocus()
|
||||||
|
|
||||||
|
def load(self, url: QUrl):
|
||||||
|
# allow queuing actions when loading url directly
|
||||||
|
self._domDone = False
|
||||||
|
super().load(url)
|
||||||
|
|
||||||
def zoomFactor(self) -> float:
|
def zoomFactor(self) -> float:
|
||||||
# overridden scale factor?
|
# overridden scale factor?
|
||||||
webscale = os.environ.get("ANKI_WEBSCALE")
|
webscale = os.environ.get("ANKI_WEBSCALE")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue