From e570551a5a20b4b962be441e5513ca1a5656b6db Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Wed, 23 Feb 2022 09:58:59 -0500 Subject: [PATCH] fix desktop close window shortcut (#1372) * fix syntax not adding additional items * lint --- src/main/menu.window.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/menu.window.ts b/src/main/menu.window.ts index 5477871a50a..00b9f259bad 100644 --- a/src/main/menu.window.ts +++ b/src/main/menu.window.ts @@ -19,10 +19,10 @@ export class WindowMenu implements IMenubarMenu { const items = [this.minimize, this.hideToMenu, this.alwaysOnTop]; if (isMac()) { - items.concat([this.zoom, this.separator, this.bringAllToFront]); + items.push(this.zoom, this.separator, this.bringAllToFront); } - items.concat([this.separator, this.close]); + items.push(this.separator, this.close); return items; }