fix syntax not adding additional items

This commit is contained in:
Jacob Fink 2022-02-23 09:29:03 -05:00
parent 7401204b70
commit ba7830acbe
1 changed files with 3 additions and 3 deletions

View File

@ -16,13 +16,13 @@ export class WindowMenu implements IMenubarMenu {
}
get items(): MenuItemConstructorOptions[] {
const items = [this.minimize, this.hideToMenu, this.alwaysOnTop];
var 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;
}