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