mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
fix(config): fix duplicated array value
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import Store from 'electron-store';
|
import Store from 'electron-store';
|
||||||
import { deepmerge } from 'deepmerge-ts';
|
import { deepmergeCustom } from 'deepmerge-ts';
|
||||||
|
|
||||||
import defaultConfig from './defaults';
|
import defaultConfig from './defaults';
|
||||||
|
|
||||||
@ -8,6 +8,10 @@ import plugins from './plugins';
|
|||||||
|
|
||||||
import { restart } from '@/providers/app-controls';
|
import { restart } from '@/providers/app-controls';
|
||||||
|
|
||||||
|
const deepmerge = deepmergeCustom({
|
||||||
|
mergeArrays: false,
|
||||||
|
});
|
||||||
|
|
||||||
const set = (key: string, value: unknown) => {
|
const set = (key: string, value: unknown) => {
|
||||||
store.set(key, value);
|
store.set(key, value);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user