Viewer: Fix rendering of books with mathematics failing

This commit is contained in:
Kovid Goyal 2019-10-16 04:34:57 +05:30
parent 504501de7f
commit adad3b4d1f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -167,7 +167,7 @@ class UrlSchemeHandler(QWebEngineUrlSchemeHandler):
import json
from calibre.srv.books import get_mathjax_manifest
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
path = os.path.abspath(os.path.join(self.mathjax_dir, '..', name))
if path.startswith(self.mathjax_dir):