This commit is contained in:
Kovid Goyal 2021-03-16 17:17:29 +05:30
parent 8ef1ef8ede
commit 8b4d27a75b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -153,7 +153,7 @@ from its bases, documented below. A typical basic USBMS based driver looks like
:members: :members:
:member-order: bysource :member-order: bysource
User Interface actions User interface actions
-------------------------- --------------------------
If you are adding your own plugin in a ZIP file, you should subclass both InterfaceActionBase and InterfaceAction. The If you are adding your own plugin in a ZIP file, you should subclass both InterfaceActionBase and InterfaceAction. The

View File

@ -50,6 +50,8 @@ def apply_mathjax(mathjax_files, link_uid, proceed):
if not standalone_proceed_data.event_listender_added: if not standalone_proceed_data.event_listender_added:
standalone_proceed_data.event_listender_added = True standalone_proceed_data.event_listender_added = True
document.documentElement.addEventListener("calibre-mathjax-typeset-done", standalone_proceed) document.documentElement.addEventListener("calibre-mathjax-typeset-done", standalone_proceed)
if standalone_proceed_data.proceed:
print('MathJax apply called while a previous apply is still running')
standalone_proceed_data.link_uid = link_uid standalone_proceed_data.link_uid = link_uid
standalone_proceed_data.proceed = proceed standalone_proceed_data.proceed = proceed
load_mathjax(f'{runtime.FAKE_PROTOCOL}://{runtime.SANDBOX_HOST}/mathjax/startup.js') load_mathjax(f'{runtime.FAKE_PROTOCOL}://{runtime.SANDBOX_HOST}/mathjax/startup.js')