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:
Damien Elmes 2017-08-06 13:46:18 +10:00
parent 718b4b35d1
commit 331239de05

View file

@ -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
########################################################################## ##########################################################################