Skip to content

Commit 252f6a0

Browse files
authoredJan 18, 2019
fix: update zoom fns for sync
BREAKING CHANGE: update zoom fns for sync versions
1 parent 2f2201f commit 252f6a0

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
 

‎test-smoke/electron/test/main.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,8 @@ const template = <Electron.MenuItemConstructorOptions[]> [
685685
click: (item, focusedWindow) => {
686686
if (focusedWindow) {
687687
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);
691690
}
692691
},
693692
},
@@ -697,9 +696,8 @@ const template = <Electron.MenuItemConstructorOptions[]> [
697696
click: (item, focusedWindow) => {
698697
if (focusedWindow) {
699698
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);
703701
}
704702
},
705703
},

‎vendor/fetch-docs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const mkdirp = require('mkdirp').sync
77
const os = require('os')
88

99
const downloadPath = path.join(os.tmpdir(), 'electron-api-tmp')
10-
const ELECTRON_COMMIT = '76dbbf51fe86995e2f206a1b9c144051d33c8215'
10+
const ELECTRON_COMMIT = '5454cd01125b9abcf89a6ec1f8622bbe2107ea81'
1111

1212
rm(downloadPath)
1313

0 commit comments

Comments
 (0)
Please sign in to comment.