create options.global if needed

This commit is contained in:
Araxeus
2021-07-20 10:57:32 +03:00
committed by GitHub
parent 664be51de2
commit 52a4608d76

View File

@ -41,6 +41,9 @@ async function promptKeybind(options, win) {
}, win);
if (output) {
if (!options.global) {
options.global = {};
}
for (const { value, accelerator } of output) {
options.global[value] = accelerator;
}