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