From 6cee6fbf9104dc005ff8319e7ddeefd3b3e2e523 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 18 Jan 2021 22:46:46 +0100 Subject: [PATCH 1/2] fix eslint errors --- public/trivabble.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/trivabble.js b/public/trivabble.js index 717ebd8..1bfe8d6 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -102,7 +102,7 @@ } else { console.error("Unsupported type"); } - } else if (defaultValue !== undefined) { + } else if (typeof defaultValue !== "undefined") { return defaultValue; } @@ -165,7 +165,10 @@ 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; @@ -2268,7 +2271,7 @@ setTimerState(getSetting("TimerEnable", getSetting("ENABLE_TIMER"))); } - let timerTimeout = 0 + let timerTimeout = 0; function updateTimer() { const currentTimer = timerDate(); @@ -2280,7 +2283,7 @@ setSetting("TimerEnable", enabled); if (timerTimeout) { clearInterval(timerTimeout); - timerTimeout = 0 + timerTimeout = 0; } if (enabled) { From f69adfee5356cc9a85db42a0486e4fb307b97ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Jakse?= Date: Sun, 14 Mar 2021 20:06:35 +0100 Subject: [PATCH 2/2] update the main website URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b7c064..911c965 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ It supports: It should work on any browser released after 2015, though we haven't tested it on Internet Explorer. This documentation is intented for people who want to install Trivabble on their server. -If you just want to play, head to https://trivabble.1s.fr/. +If you just want to play, head to https://trivabble.org/. For contributions, see (contributing)[CONTRIBUTING.md].