Add better error messages for localStorage disabled.

This commit is contained in:
Kavin
2022-11-07 10:20:13 +00:00
parent d1c403765c
commit 6b9151e47f
6 changed files with 28 additions and 9 deletions

View File

@@ -137,8 +137,8 @@ export default {
shouldShowTrending(_this) {
return _this.getPreferenceString("homepage", "trending") != "trending";
},
showSearchHistory() {
return localStorage.getItem("searchHistory") && localStorage.getItem("search_history");
showSearchHistory(_this) {
return _this.getPreferenceBoolean("searchHistory", false) && localStorage.getItem("search_history");
},
},
methods: {