mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
destructure keybind output
This commit is contained in:
@ -64,8 +64,8 @@ async function promptGlobalShortcuts(win, options, item) {
|
|||||||
}, win)
|
}, win)
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
for (const keybindObject of output) {
|
for (const { value, accelerator } of output) {
|
||||||
options.globalShortcuts[keybindObject.value] = keybindObject.accelerator;
|
options.globalShortcuts[value] = accelerator;
|
||||||
}
|
}
|
||||||
|
|
||||||
setOptions("precise-volume", options);
|
setOptions("precise-volume", options);
|
||||||
|
|||||||
@ -41,8 +41,8 @@ async function promptKeybind(options, win) {
|
|||||||
}, win);
|
}, win);
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
for (const keybindObject of output) {
|
for (const { value, accelerator } of output) {
|
||||||
options.global[keybindObject.value] = keybindObject.accelerator;
|
options.global[value] = accelerator;
|
||||||
}
|
}
|
||||||
setOption(options);
|
setOption(options);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user