mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
create options.global if needed
This commit is contained in:
@ -41,6 +41,9 @@ async function promptKeybind(options, win) {
|
|||||||
}, win);
|
}, win);
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
|
if (!options.global) {
|
||||||
|
options.global = {};
|
||||||
|
}
|
||||||
for (const { value, accelerator } of output) {
|
for (const { value, accelerator } of output) {
|
||||||
options.global[value] = accelerator;
|
options.global[value] = accelerator;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user