@@ -131,7 +131,7 @@ export default class MenuBuilder {
131
131
const state = store . getState ( ) ;
132
132
let index ;
133
133
const openTabs = state . tabs . filter (
134
- tab => ! tab . isClosed && tab . windowId === windowId
134
+ ( tab ) => ! tab . isClosed && tab . windowId === windowId
135
135
) ;
136
136
openTabs . forEach ( ( tab , i ) => {
137
137
if ( tab . isActiveTab ) {
@@ -155,7 +155,7 @@ export default class MenuBuilder {
155
155
const state = store . getState ( ) ;
156
156
let index ;
157
157
const openTabs = state . tabs . filter (
158
- tab => ! tab . isClosed && tab . windowId === windowId
158
+ ( tab ) => ! tab . isClosed && tab . windowId === windowId
159
159
) ;
160
160
openTabs . forEach ( ( tab , i ) => {
161
161
if ( tab . isActiveTab ) {
@@ -179,7 +179,7 @@ export default class MenuBuilder {
179
179
const windowId = win . webContents . id ;
180
180
181
181
const openTabs = tabs . filter (
182
- tab => ! tab . isClosed && tab . windowId === windowId
182
+ ( tab ) => ! tab . isClosed && tab . windowId === windowId
183
183
) ;
184
184
185
185
if ( openTabs . length === 1 ) {
@@ -295,8 +295,8 @@ export default class MenuBuilder {
295
295
label : 'Toggle Full Screen' ,
296
296
accelerator :
297
297
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 ( ) ) ;
300
300
}
301
301
} ,
302
302
{
0 commit comments