From ed24a2d724f069d4964494a734c19eb1ce09a85f Mon Sep 17 00:00:00 2001 From: dragonish Date: Sat, 27 Jul 2024 14:41:42 +0800 Subject: [PATCH] fix(search): fix that the page will not recover after web searching --- web/assets/js/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/assets/js/search.js b/web/assets/js/search.js index 5c3ceca..9e91eee 100644 --- a/web/assets/js/search.js +++ b/web/assets/js/search.js @@ -235,6 +235,7 @@ return false; } else if (ev.key === 'Enter' && curSearchEngine.id != '0' && searchInput.value) { jumper(searchInput.value, curSearchEngine.url, curSearchEngine.method, curSearchEngine.body); + restoreDisplay(curBookmarkList); searchInput.value = ''; clearBtn && clearBtn.classList.remove(showTip); return false; @@ -319,6 +320,7 @@ e.stopPropagation(); if (searchInput.value) { jumper(searchInput.value, curSearchEngine.url, curSearchEngine.method, curSearchEngine.body); + restoreDisplay(curBookmarkList); searchInput.value = ''; clearBtn && clearBtn.classList.remove(showTip); }