divAlert.appendChild(divAlertOuter);
document.body.appendChild(divAlert);
document.body.addEventListener("keydown", function (e) {
- if (e.key === 'Escape') {
+ if (e.key === "Escape") {
promptCancel();
confirmNo();
}
function middle(key) {
const setting = getSetting(key);
- return setting[Math.floor(setting.length / 2)]
+ return setting[Math.floor(setting.length / 2)];
}
setConf("POLLING_DELAY", 2000);
document.getElementById("btn-settings-close").onclick = hideSettings;
document.getElementById("next-help-msg").onclick = nextHelpMessage;
window.addEventListener("keydown", function (e) {
- if (e.key === 'Escape') {
+ if (e.key === "Escape") {
document.querySelector(".modal").classList.remove("show-modal");
}
});