Selaa lähdekoodia

fix a problem that may occur during testing.

oldj 4 vuotta sitten
vanhempi
sitoutus
204c11e26d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()
   }