Lint
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Mon, 5 Oct 2020 19:38:34 +0000 (21:38 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Mon, 5 Oct 2020 19:38:34 +0000 (21:38 +0200)
public/alert.js
public/trivabble.js

index ee5516827e7e9e233557006305cf90631b54da51..b0d5995b73fa349622d1322b07a4a66245a89929 100644 (file)
         divAlert.appendChild(divAlertOuter);
         document.body.appendChild(divAlert);
         document.body.addEventListener("keydown", function (e) {
-            if (e.key === 'Escape') {
+            if (e.key === "Escape") {
                 promptCancel();
                 confirmNo();
             }
index e499028df404ec671305541de5b7a439ff610d73..ae1851081d8d50d3f213d0be3add91a232aba771 100644 (file)
@@ -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);
         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");
             }
         });