File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -685,9 +685,8 @@ const template = <Electron.MenuItemConstructorOptions[]> [
685
685
click : ( item , focusedWindow ) => {
686
686
if ( focusedWindow ) {
687
687
const { webContents } = focusedWindow ;
688
- webContents . getZoomLevel ( ( zoomLevel ) => {
689
- webContents . setZoomLevel ( zoomLevel + 0.5 ) ;
690
- } ) ;
688
+ const zoomLevel = webContents . getZoomLevel ( ) ;
689
+ webContents . setZoomLevel ( zoomLevel + 0.5 ) ;
691
690
}
692
691
} ,
693
692
} ,
@@ -697,9 +696,8 @@ const template = <Electron.MenuItemConstructorOptions[]> [
697
696
click : ( item , focusedWindow ) => {
698
697
if ( focusedWindow ) {
699
698
const { webContents } = focusedWindow ;
700
- webContents . getZoomLevel ( ( zoomLevel ) => {
701
- webContents . setZoomLevel ( zoomLevel - 0.5 ) ;
702
- } ) ;
699
+ const zoomLevel = webContents . getZoomLevel ( ) ;
700
+ webContents . setZoomLevel ( zoomLevel - 0.5 ) ;
703
701
}
704
702
} ,
705
703
} ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const mkdirp = require('mkdirp').sync
7
7
const os = require ( 'os' )
8
8
9
9
const downloadPath = path . join ( os . tmpdir ( ) , 'electron-api-tmp' )
10
- const ELECTRON_COMMIT = '76dbbf51fe86995e2f206a1b9c144051d33c8215 '
10
+ const ELECTRON_COMMIT = '5454cd01125b9abcf89a6ec1f8622bbe2107ea81 '
11
11
12
12
rm ( downloadPath )
13
13
You can’t perform that action at this time.
0 commit comments