Browse Source

fix a problem that may occur during testing.

oldj 4 years ago
parent
commit
204c11e26d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/tray/index.ts

+ 1 - 1
src/main/tray/index.ts

@@ -134,7 +134,7 @@ const show = () => {
   // win.focus()
 }
 
-app.whenReady().then(() => {
+app && app.whenReady().then(() => {
   if (!tray) {
     makeTray()
   }