fix(search): restore missing readHistory function declaration

The function body was left as a bare statement after setSearchType,
which made search.js fail to parse (Unexpected identifier 'window')
and broke the frontend search panel.
This commit is contained in:
2026-07-10 23:50:29 +08:00
parent 6f6e431bb3
commit 711fb9ad14
+2
View File
@@ -91,6 +91,8 @@
syncCategorySelectors(nextType, getDesktopCategory());
requestSuggestions();
}
function readHistory() {
if (!historyEnabled) return [];
if (aksrtData.isLoggedIn) return [];
try {