From 4f71a32bcfe31465ccfbeb19c447da07b5fd4b29 Mon Sep 17 00:00:00 2001 From: Bui Date: Sat, 26 Feb 2022 01:29:02 +0000 Subject: [PATCH] set last query first --- public/src/js/songselect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index b857e81..89e6a78 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -2992,6 +2992,7 @@ class SongSelect{ searchInput(e){ var text = e.target.value.toLowerCase() + localStorage.setItem("lastSearchQuery", text) if(text.length === 0){ this.setSearchTip() @@ -2999,7 +3000,6 @@ class SongSelect{ } var new_results = this.performSearch(text) - localStorage.setItem("lastSearchQuery", text) if (new_results.length === 0) { this.setSearchTip(strings.search.noResults, true)