From 10c8868742d05e922a1e7296066b49c7ffbb3819 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Mon, 5 Oct 2020 21:38:34 +0200 Subject: [PATCH] Lint --- public/alert.js | 2 +- public/trivabble.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/alert.js b/public/alert.js index ee55168..b0d5995 100644 --- a/public/alert.js +++ b/public/alert.js @@ -118,7 +118,7 @@ divAlert.appendChild(divAlertOuter); document.body.appendChild(divAlert); document.body.addEventListener("keydown", function (e) { - if (e.key === 'Escape') { + if (e.key === "Escape") { promptCancel(); confirmNo(); } diff --git a/public/trivabble.js b/public/trivabble.js index e499028..ae18510 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -42,7 +42,7 @@ 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); @@ -2182,7 +2182,7 @@ 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"); } }); -- 2.30.2