Виправлення помилок.

Додан новий метод авторізації в застосунок.
This commit is contained in:
2026-06-16 16:50:01 +03:00
parent 0b38f137bf
commit 9797ff6137
28 changed files with 2756 additions and 493 deletions
+10
View File
@@ -105,6 +105,8 @@ window.addEventListener('load', async function () {
editFontStyle();
Router.check().listen().delegateLinks();
clearAppBadge();
}
});
@@ -184,6 +186,14 @@ function applyFontMode(mode) {
});
}
function clearAppBadge() {
if ('clearAppBadge' in navigator) {
navigator.clearAppBadge()
.then(() => console.log('Лічильник на іконці успішно скинутий'))
.catch((error) => console.error('Помилка очищення бейджу:', error));
}
}
if ('serviceWorker' in navigator) {
let refreshing = false;
let updateNode = null;