(d)
| 21105 | } |
| 21106 | } catch (e) { |
| 21107 | console.error('Failed to fetch Pushover key status:', e); |
| 21108 | } |
| 21109 | } |
| 21110 | |
| 21111 | async function togglePushoverEnabled() { |
| 21112 | const cb = document.getElementById('pushover-enabled-toggle'); |
| 21113 | if (!cb) return; |
| 21114 | try { |
| 21115 | await postAPI('/api/config', { pushover_enabled: cb.checked }); |
| 21116 | showPushoverStatus(cb.checked ? '✓ Pushover notifications enabled' : 'ℹ Pushover notifications disabled', |