1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00
This commit is contained in:
kkapsner 2019-07-16 13:36:54 +02:00
parent 7574ee1126
commit 3861b29848

View File

@ -142,8 +142,16 @@
}); });
const container = openDialog(text, [ const container = openDialog(text, [
{text: extension.getTranslation("cancel"), default: true, callback: ()=>reject(false)}, {
{text: extension.getTranslation("OK"), focused: true, callback: ()=>resolve(select.options[select.selectedIndex].object)} text: extension.getTranslation("cancel"),
default: true,
callback: () => reject(false)
},
{
text: extension.getTranslation("OK"),
focused: true,
callback: () => resolve(select.options[select.selectedIndex].object)
}
], parent); ], parent);
container.querySelector(".text").insertAdjacentElement("afterend", select); container.querySelector(".text").insertAdjacentElement("afterend", select);
}); });