diff --git a/qt/aqt/browser/previewer.py b/qt/aqt/browser/previewer.py index ec4b9cff0..7421141c2 100644 --- a/qt/aqt/browser/previewer.py +++ b/qt/aqt/browser/previewer.py @@ -127,10 +127,7 @@ class Previewer(QDialog): self._web.stdHtml( self.mw.reviewer.revHtml(), css=["css/reviewer.css"], - js=[ - "js/vendor/protobuf.min.js", - "js/reviewer.js", - ], + js=["js/reviewer.js"], context=self, ) self._web.set_bridge_command(self._on_bridge_cmd, self) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index cbf602675..0a3fea9b4 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -333,10 +333,7 @@ class CardLayout(QDialog): self.preview_web.stdHtml( self.mw.reviewer.revHtml(), css=["css/reviewer.css"], - js=[ - "js/vendor/protobuf.min.js", - "js/reviewer.js", - ], + js=["js/reviewer.js"], context=self, ) self.preview_web.set_bridge_command(self._on_bridge_cmd, self) diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index a670495ad..e2ceced7d 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -287,10 +287,7 @@ class Reviewer: self.web.stdHtml( self.revHtml(), css=["css/reviewer.css"], - js=[ - "js/vendor/protobuf.min.js", - "js/reviewer.js", - ], + js=["js/reviewer.js"], context=self, ) # show answer / ease buttons diff --git a/ts/editor/BUILD.bazel b/ts/editor/BUILD.bazel index 278acdf5e..18221bd9e 100644 --- a/ts/editor/BUILD.bazel +++ b/ts/editor/BUILD.bazel @@ -133,10 +133,10 @@ esbuild( output_css = "editor.css", visibility = ["//visibility:public"], deps = [ - "base_css", - "bootstrap-icons", "editor_ts", + "base_css", "local_css", + "bootstrap-icons", "mdi-icons", "svelte_components", "//ts/components", diff --git a/ts/reviewer/BUILD.bazel b/ts/reviewer/BUILD.bazel index d68a5b531..228dd078b 100644 --- a/ts/reviewer/BUILD.bazel +++ b/ts/reviewer/BUILD.bazel @@ -29,22 +29,16 @@ ts_library( esbuild( name = "reviewer", - srcs = [ - "//ts:protobuf-shim.js", - ], args = [ "--resolve-extensions=.mjs,.js", "--log-level=warning", ], entry_point = "index_wrapper.ts", - external = [ - "protobufjs/light", - ], visibility = ["//visibility:public"], deps = [ ":reviewer_ts", - "@npm//mathjax-full", "//ts/lib", + "//ts/lib:backend_proto", "@npm//protobufjs", ], )