Browse Source

fix: Menu.setApplicationMenu can return a useless array 29088 (#29128)

Co-authored-by: tabishmahfuz1 <[email protected]>
trop[bot] 3 years ago
parent
commit
23bfc37825
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/api/menu.ts

+ 1 - 1
lib/browser/api/menu.ts

@@ -177,7 +177,7 @@ Menu.setApplicationMenu = function (menu: MenuType) {
     bindings.setApplicationMenu(menu);
   } else {
     const windows = BaseWindow.getAllWindows();
-    return windows.map(w => w.setMenu(menu));
+    windows.map(w => w.setMenu(menu));
   }
 };