We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4975f1 + a7d7bac commit a95f107Copy full SHA for a95f107
1 file changed
src/main/services/infrastructure/NotificationManager.ts
@@ -373,8 +373,12 @@ export class NotificationManager extends EventEmitter {
373
* Shows a native macOS notification for an error.
374
*/
375
private showNativeNotification(error: DetectedError): void {
376
- // Check if Notification is supported
377
- if (!Notification.isSupported()) {
+ // Guard against standalone/Docker mode where Electron's Notification API is unavailable
+ if (
378
+ typeof Notification === 'undefined' ||
379
+ typeof Notification.isSupported !== 'function' ||
380
+ !Notification.isSupported()
381
+ ) {
382
logger.warn('Native notifications not supported');
383
return;
384
}
0 commit comments