Skip to content

Commit

Permalink
Revert "fix: update zoom fns for sync (#119)"
Browse files Browse the repository at this point in the history
This reverts commit 9a4ac22.
  • Loading branch information
MarshallOfSound committed Jan 18, 2019
1 parent 9a4ac22 commit 47af186
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions test-smoke/electron/test/main.ts
Expand Up @@ -685,8 +685,9 @@ const template = <Electron.MenuItemConstructorOptions[]> [
click: (item, focusedWindow) => {
if (focusedWindow) {
const { webContents } = focusedWindow;
const zoomLevel = webContents.getZoomLevel();
webContents.setZoomLevel(zoomLevel + 0.5);
webContents.getZoomLevel((zoomLevel) => {
webContents.setZoomLevel(zoomLevel + 0.5);
});
}
},
},
Expand All @@ -696,8 +697,9 @@ const template = <Electron.MenuItemConstructorOptions[]> [
click: (item, focusedWindow) => {
if (focusedWindow) {
const { webContents } = focusedWindow;
const zoomLevel = webContents.getZoomLevel();
webContents.setZoomLevel(zoomLevel - 0.5);
webContents.getZoomLevel((zoomLevel) => {
webContents.setZoomLevel(zoomLevel - 0.5);
});
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion vendor/fetch-docs.js
Expand Up @@ -7,7 +7,7 @@ const mkdirp = require('mkdirp').sync
const os = require('os')

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

rm(downloadPath)

Expand Down

0 comments on commit 47af186

Please sign in to comment.