From 8c3c6346508d7c1fed73d2cb0bfab8eef6bccf39 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Oct 2019 04:36:32 +0530 Subject: [PATCH] ... --- src/calibre/gui2/viewer/web_view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/viewer/web_view.py b/src/calibre/gui2/viewer/web_view.py index c54e7cd376..e490e3885d 100644 --- a/src/calibre/gui2/viewer/web_view.py +++ b/src/calibre/gui2/viewer/web_view.py @@ -166,9 +166,9 @@ class UrlSchemeHandler(QWebEngineUrlSchemeHandler): if self.mathjax_manifest is None: import json from calibre.srv.books import get_mathjax_manifest - self.mathjax_manifest = json.dumps(get_mathjax_manifest()['files']) - send_reply(rq, 'application/json', as_bytes(self.mathjax_manifest)) - return + self.mathjax_manifest = as_bytes(json.dumps(get_mathjax_manifest()['files'])) + send_reply(rq, 'application/json', self.mathjax_manifest) + return path = os.path.abspath(os.path.join(self.mathjax_dir, '..', name)) if path.startswith(self.mathjax_dir): mt = guess_type(name)