fix central star
authorLaurent Mazet <mazet@softndesign.org>
Fri, 15 Jan 2021 17:39:29 +0000 (18:39 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Fri, 15 Jan 2021 17:39:29 +0000 (18:39 +0100)
public/trivabble.js

index 073357864dfe71fdd7460246a1cb1ce3f1e59113..69bf1977f4c2ca03bcbf41f1c0c5b242f533d4d6 100644 (file)
 
             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;
+                    }
                 }
             }
 
 
             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;
+                    }
                 }
             }
         }