Skip to content

Commit 0cf858a

Browse files
author
Jessica Lord
authored
Merge pull request electron#216 from electron/no-app-icon
Guard against no app icon
2 parents bdce8bd + 6920ee6 commit 0cf858a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main-process/native-ui/tray/tray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ ipc.on('remove-tray', function () {
2727
})
2828

2929
app.on('window-all-closed', function () {
30-
appIcon.destroy()
30+
if (appIcon) appIcon.destroy()
3131
})

0 commit comments

Comments
 (0)