mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 19:52:14 -08:00
Disable zoom on UI (darwin).
This commit is contained in:
parent
05ebb80f19
commit
f257208e2f
@ -5,7 +5,11 @@
|
|||||||
* modules, excluding dependencies.
|
* modules, excluding dependencies.
|
||||||
*/
|
*/
|
||||||
const $ = require('jquery');
|
const $ = require('jquery');
|
||||||
const {remote, shell} = require('electron')
|
const {remote, shell, webFrame} = require('electron')
|
||||||
|
|
||||||
|
// Disable zoom, needed for darwin.
|
||||||
|
webFrame.setVisualZoomLevelLimits(1, 1)
|
||||||
|
webFrame.setLayoutZoomLevelLimits(0, 0)
|
||||||
|
|
||||||
/* jQuery Example
|
/* jQuery Example
|
||||||
$(function(){
|
$(function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user