mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
fix(store): fix Cannot read properties of undefined 'global'
This commit is contained in:
@ -88,7 +88,7 @@ const migrations = {
|
||||
>;
|
||||
let updated = false;
|
||||
for (const optionType of ['global', 'local']) {
|
||||
if (Array.isArray(options[optionType])) {
|
||||
if (Object.hasOwn(options, optionType) && Array.isArray(options[optionType])) {
|
||||
const optionsArray = options[optionType] as {
|
||||
action: string;
|
||||
shortcut: unknown;
|
||||
|
||||
Reference in New Issue
Block a user