diff --git a/qt/aqt/browser/previewer.py b/qt/aqt/browser/previewer.py index 02fbe35af..cd21fd4c2 100644 --- a/qt/aqt/browser/previewer.py +++ b/qt/aqt/browser/previewer.py @@ -125,7 +125,6 @@ class Previewer(QDialog): def _setup_web_view(self) -> None: jsinc = [ - "js/vendor/jquery.min.js", "js/mathjax.js", "js/vendor/mathjax/tex-chtml.js", "js/vendor/protobuf.min.js", diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index f951f8e4d..b6ce650d2 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -331,7 +331,6 @@ class CardLayout(QDialog): qconnect(pform.preview_settings.clicked, self.on_preview_settings) jsinc = [ - "js/vendor/jquery.min.js", "js/mathjax.js", "js/vendor/mathjax/tex-chtml.js", "js/vendor/protobuf.min.js", diff --git a/ts/reviewer/BUILD.bazel b/ts/reviewer/BUILD.bazel index e90e5f6c1..972034642 100644 --- a/ts/reviewer/BUILD.bazel +++ b/ts/reviewer/BUILD.bazel @@ -22,6 +22,7 @@ ts_library( "//ts/lib", "//ts/lib:backend_proto", "@npm//css-browser-selector", + "@npm//jquery", ], ) diff --git a/ts/reviewer/index.ts b/ts/reviewer/index.ts index 52a8e46d8..3735c497d 100644 --- a/ts/reviewer/index.ts +++ b/ts/reviewer/index.ts @@ -2,6 +2,7 @@ // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import "css-browser-selector/css_browser_selector"; +import "jquery/dist/jquery"; import { bridgeCommand } from "lib/bridgecommand"; export { mutateNextCardStates } from "./answering";