Keep MainWindow's zoom level to zero excepting webview
This commit is contained in:
@@ -329,7 +329,10 @@ const MainPage = createReactClass({
|
||||
/>
|
||||
);
|
||||
return (
|
||||
<div className='MainPage'>
|
||||
<div
|
||||
className='MainPage'
|
||||
onClick={this.focusOnWebView}
|
||||
>
|
||||
<LoginModal
|
||||
show={this.state.loginQueue.length !== 0}
|
||||
request={request}
|
||||
|
@@ -66,6 +66,7 @@ function createMainWindow(config, options) {
|
||||
});
|
||||
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
mainWindow.webContents.setZoomLevel(0);
|
||||
if (process.platform !== 'darwin') {
|
||||
mainWindow.show();
|
||||
} else if (options.hideOnStartup !== true) {
|
||||
|
Reference in New Issue
Block a user