Skip to content

Commit 90b954c

Browse files
committed
fix(Fullscreen): Fixes fullscreening when triggering on a second browser window
1 parent 70cfd56 commit 90b954c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/menu.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class MenuBuilder {
131131
const state = store.getState();
132132
let index;
133133
const openTabs = state.tabs.filter(
134-
tab => !tab.isClosed && tab.windowId === windowId
134+
( tab ) => !tab.isClosed && tab.windowId === windowId
135135
);
136136
openTabs.forEach( ( tab, i ) => {
137137
if ( tab.isActiveTab ) {
@@ -155,7 +155,7 @@ export default class MenuBuilder {
155155
const state = store.getState();
156156
let index;
157157
const openTabs = state.tabs.filter(
158-
tab => !tab.isClosed && tab.windowId === windowId
158+
( tab ) => !tab.isClosed && tab.windowId === windowId
159159
);
160160
openTabs.forEach( ( tab, i ) => {
161161
if ( tab.isActiveTab ) {
@@ -179,7 +179,7 @@ export default class MenuBuilder {
179179
const windowId = win.webContents.id;
180180

181181
const openTabs = tabs.filter(
182-
tab => !tab.isClosed && tab.windowId === windowId
182+
( tab ) => !tab.isClosed && tab.windowId === windowId
183183
);
184184

185185
if ( openTabs.length === 1 ) {
@@ -295,8 +295,8 @@ export default class MenuBuilder {
295295
label: 'Toggle Full Screen',
296296
accelerator:
297297
process.platform === 'darwin' ? 'CommandOrControl+Shift+F' : 'F11',
298-
click: () => {
299-
this.mainWindow.setFullScreen( !this.mainWindow.isFullScreen() );
298+
click: ( item, win ) => {
299+
win.setFullScreen( !win.isFullScreen() );
300300
}
301301
},
302302
{

0 commit comments

Comments
 (0)