Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
set default zoom after page load
Browse files Browse the repository at this point in the history
fix #8144
auditors @bbondy
  • Loading branch information
bridiver committed Apr 12, 2017
1 parent fafe10e commit adb3dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ const createWindow = (action) => {

mainWindow.webContents.on('did-finish-load', (e) => {
lastEmittedState = appState
mainWindow.webContents.setZoomLevel(0.0)
e.sender.send(messages.INITIALIZE_WINDOW, frameOpts.disposition, appState.toJS(), frames, action.restoredState)
if (action.cb) {
action.cb()
Expand All @@ -233,7 +234,6 @@ const createWindow = (action) => {
mainWindow.show()
})

mainWindow.webContents.setZoomLevel(0.0)
mainWindow.loadURL(appUrlUtil.getBraveExtIndexHTML())
})
}
Expand Down

0 comments on commit adb3dd3

Please sign in to comment.