mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: typo and update package.json version
This commit is contained in:
parent
2ee288b9ba
commit
c7c91bccbc
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "YesPlayMusic",
|
"name": "YesPlayMusic",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A third party music application for Netease Music",
|
"description": "A third party music application for Netease Music",
|
||||||
"author": "hawtim<hawtimzhang@gmail.com>",
|
"author": "hawtim<hawtimzhang@gmail.com>",
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@ import pkg from "../../package.json";
|
||||||
|
|
||||||
const updateSetting = () => {
|
const updateSetting = () => {
|
||||||
const parsedSettings = JSON.parse(localStorage.getItem("settings"));
|
const parsedSettings = JSON.parse(localStorage.getItem("settings"));
|
||||||
const setting = {
|
const settings = {
|
||||||
playlistCategories: initLocalStorage?.settings?.playlistCategories,
|
playlistCategories: initLocalStorage?.settings?.playlistCategories,
|
||||||
showUnavailableSongInGreyStyle:
|
showUnavailableSongInGreyStyle:
|
||||||
initLocalStorage?.settings?.showUnavailableSongInGreyStyle,
|
initLocalStorage?.settings?.showUnavailableSongInGreyStyle,
|
||||||
...parsedSettings,
|
...parsedSettings,
|
||||||
};
|
};
|
||||||
|
|
||||||
localStorage.setItem("setting", JSON.stringify(setting));
|
localStorage.setItem("settings", JSON.stringify(settings));
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateData = () => {
|
const updateData = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue