From 2af43c8ad8aef0ddacb82cf9b92e4bb545627065 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Wed, 21 Apr 2021 10:44:38 +0200 Subject: [PATCH] Revert "fix eslint errors" This reverts commit 8f674f384816aee8aa985b5f0b81db899837ed1a. --- public/trivabble.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/trivabble.js b/public/trivabble.js index 2aec370..b191b50 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -103,7 +103,7 @@ } else { console.error("Unsupported type"); } - } else if (typeof defaultValue !== "undefined") { + } else if (defaultValue !== undefined) { return defaultValue; } @@ -160,7 +160,7 @@ PlayerName: "string", SpellCheckerEnabledOnce: "boolean", TimerGameDate: "number", - TimerTurnDate: "number" + TimerTurnDate: "number", }; const _ = (window.libD && libD.l10n) ? libD.l10n() : function (s) { @@ -170,10 +170,7 @@ 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; @@ -2284,7 +2281,7 @@ setTimerState(getSetting("ENABLE_TIMER")); } - let timerTimeout = 0; + let timerTimeout = 0 function updateTimer() { const currentTimer = timerDate(); @@ -2296,7 +2293,7 @@ setSetting("ENABLE_TIMER", enabled); if (timerTimeout) { clearInterval(timerTimeout); - timerTimeout = 0; + timerTimeout = 0 } if (enabled) { -- 2.30.2