Revert "fix eslint errors"
authorLaurent Mazet <mazet@softndesign.org>
Wed, 21 Apr 2021 08:44:38 +0000 (10:44 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 21 Apr 2021 08:44:38 +0000 (10:44 +0200)
This reverts commit 8f674f384816aee8aa985b5f0b81db899837ed1a.

public/trivabble.js

index 2aec370371e898eb0364a87b3c548185c16c6843..b191b5033c94735bd71457b5b222163f78b9e5b7 100644 (file)
             } else {
                 console.error("Unsupported type");
             }
-        } else if (typeof defaultValue !== "undefined") {
+        } else if (defaultValue !== undefined) {
             return defaultValue;
         }
 
         PlayerName: "string",
         SpellCheckerEnabledOnce: "boolean",
         TimerGameDate: "number",
-        TimerTurnDate: "number"
+        TimerTurnDate: "number",
     };
 
     const _ = (window.libD && libD.l10n) ? libD.l10n() : function (s) {
     const trivabble = window.trivabble = {l10n: _};
 
     function format(s, v1, v2, v3) {
-        return s
-            .replace("{0}", v1)
-            .replace("{1}", v2)
-            .replace("{2}", v3);
+        return s.replace("{0}", v1).replace("{1}", v2).replace("{2}", v3);
     }
 
     let board;
         setTimerState(getSetting("ENABLE_TIMER"));
     }
 
-    let timerTimeout = 0;
+    let timerTimeout = 0
 
     function updateTimer() {
         const currentTimer = timerDate();
         setSetting("ENABLE_TIMER", enabled);
         if (timerTimeout) {
             clearInterval(timerTimeout);
-            timerTimeout = 0;
+            timerTimeout = 0
         }
 
         if (enabled) {