style: apply linter suggestions

This commit is contained in:
Edouard Vanbelle
2026-04-07 22:50:42 +02:00
parent 1ce29c101d
commit a4266a6e93
33 changed files with 444 additions and 437 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ switch (errorType) {
errorTitle.textContent = 'Login Failed';
errorMessage.textContent = 'Invalid username or password. Please check your credentials and try again.';
errorAction.textContent = 'Try Again';
errorAction.addEventListener('click', function () {
errorAction.addEventListener('click', () => {
history.back();
});
break;
@@ -19,7 +19,7 @@ switch (errorType) {
errorTitle.textContent = 'Session Expired';
errorMessage.textContent = 'Your session has expired. Please try again.';
errorAction.textContent = 'Close Window';
errorAction.addEventListener('click', function () {
errorAction.addEventListener('click', () => {
window.close();
});
break;
@@ -27,7 +27,7 @@ switch (errorType) {
errorTitle.textContent = 'Not Found';
errorMessage.textContent = 'The requested page was not found.';
errorAction.textContent = 'Close Window';
errorAction.addEventListener('click', function () {
errorAction.addEventListener('click', () => {
window.close();
});
break;
@@ -35,7 +35,7 @@ switch (errorType) {
errorTitle.textContent = 'Error';
errorMessage.textContent = 'An unexpected error occurred. Please try again.';
errorAction.textContent = 'Close Window';
errorAction.addEventListener('click', function () {
errorAction.addEventListener('click', () => {
window.close();
});
}