mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Previous implementation always disabled notifications when permission was granted, regardless of current state. This made it impossible to re-enable notifications after disabling them. Now properly checks localStorage state and toggles: - If currently enabled → disable (show "Notifications disabled") - If currently disabled → enable (show "Notifications enabled") This fixes the issue where clicking the toggle when disabled would show "Notifications disabled" instead of enabling them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>