mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
Linting
This commit is contained in:
parent
7574ee1126
commit
3861b29848
12
lib/modal.js
12
lib/modal.js
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user