From 3a148fbbd1daa41afa5a781f786ce0ffb0ea9f0d Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Fri, 15 Jan 2021 18:39:29 +0100 Subject: [PATCH] fix central star --- public/trivabble.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/trivabble.js b/public/trivabble.js index 0733578..69bf197 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2322,7 +2322,9 @@ if (mode !== "short") { for (const cell of [].slice.call(document.getElementsByClassName("special-cell-label"))) { - cell.textContent = cell.longText; + if (cell.textContent !== "★") { + cell.textContent = cell.longText; + } } } @@ -2333,7 +2335,9 @@ if (mode === "short") { for (const cell of [].slice.call(document.getElementsByClassName("special-cell-label"))) { - cell.textContent = cell.shortText; + if (cell.textContent !== "★") { + cell.textContent = cell.shortText; + } } } } -- 2.30.2