This commit is contained in:
Renan LE CARO 2025-04-20 13:12:10 +02:00
parent 4d7d57f17f
commit b3949d8c41
11 changed files with 139 additions and 79 deletions

View file

@ -2,7 +2,7 @@ let div = document.createElement("div");
div.classList = "hidden toast";
document.body.appendChild(div);
let timeout: NodeJS.Timeout | undefined;
export function toast(html) {
export function toast(html: string) {
div.classList = "toast visible";
div.innerHTML = html;
if (timeout) {