From be4da21301298c08a0d020e2f7a27bd7dddc9580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:31:27 +0800 Subject: [PATCH] update --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 4 ++-- LunaTranslator/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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