Skip to content

Commit

Permalink
Fix issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Dec 28, 2018
1 parent abf52fc commit 59affb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ if (!singleInstanceLock) {
if (toggleTray) {
setTray();
} else {
trayIcon.destroy();
if (trayIcon) {
trayIcon.destroy();
}
trayIcon = null;
trayIcon = undefined;
}
Expand Down

0 comments on commit 59affb5

Please sign in to comment.