Fixing default zoom level (darwin).

pull/1/head
Daniel Scalzi 2018-04-12 18:39:31 -04:00
parent f257208e2f
commit 2a551f18ba
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ const $ = require('jquery');
const {remote, shell, webFrame} = require('electron')
// Disable zoom, needed for darwin.
webFrame.setZoomLevel(0)
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)