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