浏览代码

fix a problem that may occur during testing.

oldj 4 年之前
父节点
当前提交
204c11e26d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/tray/index.ts

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

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