Skip to content

Commit 8294ef8

Browse files
authored
Merge pull request #32 from murdercode/error-init-fix
Error init fix
2 parents 51fc123 + 51c7556 commit 8294ef8

File tree

4 files changed

+261
-63
lines changed

4 files changed

+261
-63
lines changed

src/components/update-notification.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class UpdateNotification {
4040
// L'updateManager dovrebbe emettere gli eventi corretti al momento giusto
4141
} else {
4242
console.warn('⚠️ [UpdateNotification] UpdateManager non trovato dopo 10 secondi');
43+
// Non bloccare l'app, continua senza update notifications
4344
}
4445
}
4546

src/core/pomodoro-timer.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,11 +1865,9 @@ export class PomodoroTimer {
18651865
async updateProgressDots() {
18661866
const dots = this.progressDots.querySelectorAll('.dot');
18671867

1868-
// Remove any existing overflow indicator
1869-
const existingOverflow = this.progressDots.querySelector('.overflow-indicator');
1870-
if (existingOverflow) {
1871-
existingOverflow.remove();
1872-
}
1868+
// Remove any existing overflow indicators
1869+
const existingOverflows = this.progressDots.querySelectorAll('.overflow-indicator');
1870+
existingOverflows.forEach(overflow => overflow.remove());
18731871

18741872
// Get actual completed sessions count from SessionManager
18751873
const actualCompletedSessions = await this.getCompletedSessionsToday();

0 commit comments

Comments
 (0)