diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index faf46530..3403b072 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -549,8 +549,8 @@ class WebivewWidget(QWidget): self.webview.bind("__on_load", self._on_load) self.webview.init("""window.__on_load(window.location.href)""") - def _on_load(self, _, href): - self.on_load.emit(json.loads(href)[0]) + def _on_load(self, href): + self.on_load.emit(href) def __getattr__(self, name): return getattr(self.webview, (name)) diff --git a/LunaTranslator/requirements.txt b/LunaTranslator/requirements.txt index 3a97bc79..52353a8e 100644 --- a/LunaTranslator/requirements.txt +++ b/LunaTranslator/requirements.txt @@ -1,6 +1,6 @@ PyQt5==5.15.10 PyQt5-Qt5==5.15.2 -webviewpy==1.0.5 +webviewpy==1.1.0 nuitka==2.0.5 imageio pefile \ No newline at end of file