mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
eeb8212f13
commit
a238a7184d
@ -155,6 +155,9 @@ class DB:
|
|||||||
req.onerror = def(event):
|
req.onerror = def(event):
|
||||||
proceed(_('Failed to store book data ({0}) with error: {1}').format(name, get_error_details(event)))
|
proceed(_('Failed to store book data ({0}) with error: {1}').format(name, get_error_details(event)))
|
||||||
|
|
||||||
|
def clear_mathjax(self, proceed):
|
||||||
|
self.idb.transaction(['mathjax'], 'readwrite').objectStore('mathjax').clear().onsuccess = proceed
|
||||||
|
|
||||||
def store_mathjax_file(self, name, xhr, proceed):
|
def store_mathjax_file(self, name, xhr, proceed):
|
||||||
data = xhr.response
|
data = xhr.response
|
||||||
if not self.supports_blobs:
|
if not self.supports_blobs:
|
||||||
|
@ -261,7 +261,9 @@ class ReadUI:
|
|||||||
if mathjax_info.version is MATHJAX_VERSION:
|
if mathjax_info.version is MATHJAX_VERSION:
|
||||||
return proceed()
|
return proceed()
|
||||||
print('Upgrading MathJax, previous version:', mathjax_info.version)
|
print('Upgrading MathJax, previous version:', mathjax_info.version)
|
||||||
self.get_mathjax_manifest(mathjax_info, proceed)
|
self.db.clear_mathjax(def():
|
||||||
|
self.get_mathjax_manifest(mathjax_info, proceed)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_mathjax_manifest(self, mathjax_info, proceed):
|
def get_mathjax_manifest(self, mathjax_info, proceed):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user