diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index 7892853a4..955893e83 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -499,7 +499,7 @@ html {{ {font} }} from aqt import mw - head = mw.baseHTML() + csstxt + jstxt + web_content.head + head = mw.baseHTML() + csstxt + web_content.head body_class = theme_manager.body_class() if theme_manager.night_mode: @@ -520,7 +520,9 @@ html {{ {font} }} {head} -{web_content.body} + +{jstxt} +{web_content.body} """ # print(html) self.setHtml(html) diff --git a/ts/page.html b/ts/page.html index 577569617..39acc6792 100644 --- a/ts/page.html +++ b/ts/page.html @@ -4,7 +4,7 @@ - +