From 711fb9ad14d6feab128cd95d4f0c5592ed496046 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 10 Jul 2026 23:50:29 +0800 Subject: [PATCH] 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. --- assets/js/core/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/core/search.js b/assets/js/core/search.js index 1e9c49d4..bd457c21 100644 --- a/assets/js/core/search.js +++ b/assets/js/core/search.js @@ -91,6 +91,8 @@ syncCategorySelectors(nextType, getDesktopCategory()); requestSuggestions(); } + + function readHistory() { if (!historyEnabled) return []; if (aksrtData.isLoggedIn) return []; try {