mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix TypeError: channel.execCallbacks[message.id] is not a function
we need to avoid calling setHtml() until the bridge command has had a chance to pass its return code back down the channel
This commit is contained in:
parent
718b4b35d1
commit
331239de05
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ class AnkiWebPage(QWebEnginePage):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _onCmd(self, str):
|
def _onCmd(self, str):
|
||||||
self._onBridgeCmd(str)
|
from aqt import mw
|
||||||
|
mw.progress.timer(1, lambda: self._onBridgeCmd(str), False)
|
||||||
|
|
||||||
# Main web view
|
# Main web view
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue