Remove saved search history on disabling.

This commit is contained in:
Kavin 2022-10-02 14:29:23 +01:00
parent 5af767decb
commit d80460eb74
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -559,6 +559,7 @@ export default {
localStorage.setItem("minimizeRecommendations", this.minimizeRecommendations);
localStorage.setItem("watchHistory", this.watchHistory);
localStorage.setItem("searchHistory", this.searchHistory);
if (!this.searchHistory) localStorage.removeItem("search_history");
localStorage.setItem("hl", this.selectedLanguage);
localStorage.setItem("enabledCodecs", this.enabledCodecs.join(","));
localStorage.setItem("disableLBRY", this.disableLBRY);