refactor: explore category

This commit is contained in:
qier222 2021-04-20 14:26:11 +08:00
parent 2f0e8e1e24
commit f16d08ab6d
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
5 changed files with 44 additions and 32 deletions

View file

@ -4,20 +4,20 @@ import pkg from "../../package.json";
const updateSetting = () => {
const parsedSettings = JSON.parse(localStorage.getItem("settings"));
const {
playlistCategories,
showUnavailableSongInGreyStyle,
automaticallyCacheSongs,
nyancatStyle,
showLyricsTranslation,
minimizeToTray,
enabledPlaylistCategories,
} = initLocalStorage.settings;
const settings = {
playlistCategories,
showUnavailableSongInGreyStyle,
automaticallyCacheSongs,
nyancatStyle,
showLyricsTranslation,
minimizeToTray,
enabledPlaylistCategories,
...parsedSettings,
};