Skip to content

Commit

Permalink
fix(search): fix that the page will not recover after web searching
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonish committed Jul 27, 2024
1 parent d8ad32f commit ed24a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ed24a2d

Please sign in to comment.