destructure keybind output

This commit is contained in:
Araxeus
2021-05-10 16:53:57 +03:00
parent 0eca30367f
commit 580caeffb9
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}