mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-13 22:00:28 +05:30
Ensure saved search history does not appear when disabled.
This commit is contained in:
parent
f920a1aae8
commit
5af767decb
@ -48,7 +48,8 @@ export default {
|
||||
},
|
||||
async refreshSuggestions() {
|
||||
if (!this.searchText) {
|
||||
this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? [];
|
||||
if (this.getPreferenceBoolean("searchHistory", false))
|
||||
this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? [];
|
||||
} else {
|
||||
this.searchSuggestions = (
|
||||
await this.fetchJson(this.apiUrl() + "/opensearch/suggestions", {
|
||||
|
Loading…
Reference in New Issue
Block a user