From: Laurent Mazet Date: Fri, 15 Jan 2021 17:39:29 +0000 (+0100) Subject: fix central star X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=3a148fbbd1daa41afa5a781f786ce0ffb0ea9f0d;p=trivabble.git fix central star --- 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; + } } } }