From 76c368340384df9dccbeda76f8e31774c5626337 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sun, 8 Dec 2024 20:39:40 +0100 Subject: =?UTF-8?q?Remove=20webview=20js=20api,=20Add=20unittest=20for=20p?= =?UTF-8?q?rovider=20has=20model,=20Use=20cooki=E2=80=A6=20(#2470)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove webview js api, Add unittest for provider has model, Use cookies dir for cache --- g4f/gui/client/index.html | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'g4f/gui/client/index.html') diff --git a/g4f/gui/client/index.html b/g4f/gui/client/index.html index cd1f72a6..5410b46e 100644 --- a/g4f/gui/client/index.html +++ b/g4f/gui/client/index.html @@ -1,6 +1,5 @@ - @@ -62,9 +61,8 @@ onInit: (el, pswp) => { lightbox.pswp.on('change', () => { const currSlideElement = lightbox.pswp.currSlide.data.element; - let captionHTML = ''; if (currSlideElement) { - el.innerHTML = currSlideElement.querySelector('img').getAttribute('alt'); + el.innerText = currSlideElement.querySelector('img').getAttribute('alt'); } }); } @@ -80,7 +78,6 @@ g4f - gui -
@@ -92,12 +89,6 @@
-
-