mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Viewer: Fix rendering of books with mathematics failing
This commit is contained in:
parent
504501de7f
commit
adad3b4d1f
@ -167,7 +167,7 @@ class UrlSchemeHandler(QWebEngineUrlSchemeHandler):
|
|||||||
import json
|
import json
|
||||||
from calibre.srv.books import get_mathjax_manifest
|
from calibre.srv.books import get_mathjax_manifest
|
||||||
self.mathjax_manifest = json.dumps(get_mathjax_manifest()['files'])
|
self.mathjax_manifest = json.dumps(get_mathjax_manifest()['files'])
|
||||||
send_reply(rq, 'application/json', self.mathjax_manifest)
|
send_reply(rq, 'application/json', as_bytes(self.mathjax_manifest))
|
||||||
return
|
return
|
||||||
path = os.path.abspath(os.path.join(self.mathjax_dir, '..', name))
|
path = os.path.abspath(os.path.join(self.mathjax_dir, '..', name))
|
||||||
if path.startswith(self.mathjax_dir):
|
if path.startswith(self.mathjax_dir):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user