Revert "fix TypeError: channel.execCallbacks[message.id] is not a function"

This reverts commit 331239de05.

This commit caused the blur event from the editor to fire after the saveNow()
callback had run, which broke the reviewer when returning from editcurrent.
Reverting for now, as the actual error is harmless AFAICT.
This commit is contained in:
Damien Elmes 2017-08-06 15:12:28 +10:00
parent 4c286fa3f7
commit a11035b2fa

View file

@ -63,8 +63,7 @@ class AnkiWebPage(QWebEnginePage):
return False return False
def _onCmd(self, str): def _onCmd(self, str):
from aqt import mw self._onBridgeCmd(str)
mw.progress.timer(1, lambda: self._onBridgeCmd(str), False)
# Main web view # Main web view
########################################################################## ##########################################################################