prevent error dialog from clearing on closing
tronnet/workflows: Code Style -- Web Components / style-web (push) Failing after 15s

This commit is contained in:
alu
2026-07-31 23:20:17 +00:00
parent ffa58e4218
commit 72d794b4dd
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class ErrorDialog extends HTMLElement {
}
navigator.clipboard.writeText(errors);
}
this.parentElement.removeChild(this);
this.dialog.close();
});
}
+5
View File
@@ -6,6 +6,11 @@ window.addEventListener("DOMContentLoaded", init);
async function init () {
await deleteAllCookies();
setAppearance();
for (let i = 0; i < 20; i++) {
error(i)
}
const formSubmitButton = document.querySelector("#submit");
formSubmitButton.addEventListener("click", async (e) => {
e.preventDefault();