mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
fix(plugin): fix onChangeConfig hook
This commit is contained in:
@ -12,11 +12,10 @@ const set = (key: string, value: unknown) => {
|
||||
};
|
||||
const setPartial = (key: string, value: object) => {
|
||||
const newValue = deepmerge(store.get(key) ?? {}, value);
|
||||
console.log('sival', key, value, newValue);
|
||||
store.set(newValue);
|
||||
store.set(key, newValue);
|
||||
};
|
||||
|
||||
function setMenuOption(key: string, value: unknown) {
|
||||
function setMenuOption(key: string, value: unknown) {
|
||||
set(key, value);
|
||||
if (store.get('options.restartOnConfigChanges')) {
|
||||
restart();
|
||||
|
||||
Reference in New Issue
Block a user