mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Remove saved search history on disabling.
This commit is contained in:
parent
5af767decb
commit
d80460eb74
1 changed files with 1 additions and 0 deletions
|
@ -559,6 +559,7 @@ export default {
|
||||||
localStorage.setItem("minimizeRecommendations", this.minimizeRecommendations);
|
localStorage.setItem("minimizeRecommendations", this.minimizeRecommendations);
|
||||||
localStorage.setItem("watchHistory", this.watchHistory);
|
localStorage.setItem("watchHistory", this.watchHistory);
|
||||||
localStorage.setItem("searchHistory", this.searchHistory);
|
localStorage.setItem("searchHistory", this.searchHistory);
|
||||||
|
if (!this.searchHistory) localStorage.removeItem("search_history");
|
||||||
localStorage.setItem("hl", this.selectedLanguage);
|
localStorage.setItem("hl", this.selectedLanguage);
|
||||||
localStorage.setItem("enabledCodecs", this.enabledCodecs.join(","));
|
localStorage.setItem("enabledCodecs", this.enabledCodecs.join(","));
|
||||||
localStorage.setItem("disableLBRY", this.disableLBRY);
|
localStorage.setItem("disableLBRY", this.disableLBRY);
|
||||||
|
|
Loading…
Reference in a new issue