()
| 1695 | } |
| 1696 | |
| 1697 | function updateInitialText() { |
| 1698 | if (document.querySelector(".imageTaskContainer") === null) { |
| 1699 | if (undoBuffer.length > 0) { |
| 1700 | initialText.prepend(undoButton) |
| 1701 | } |
| 1702 | previewTools.classList.add("displayNone") |
| 1703 | initialText.classList.remove("displayNone") |
| 1704 | supportBanner.classList.add("displayNone") |
| 1705 | } else { |
| 1706 | initialText.classList.add("displayNone") |
| 1707 | previewTools.classList.remove("displayNone") |
| 1708 | document.querySelector("div.display-settings").prepend(undoButton) |
| 1709 | |
| 1710 | const countBeforeBanner = localStorage.getItem("countBeforeBanner") || 1 |
| 1711 | if (countBeforeBanner <= 0) { |
| 1712 | supportBanner.classList.remove("displayNone") |
| 1713 | } |
| 1714 | } |
| 1715 | } |
| 1716 | |
| 1717 | function removeTask(taskToRemove) { |
| 1718 | undoableRemove(taskToRemove) |
no test coverage detected