Daniel Scalzi 7 лет назад
Родитель
Сommit
f257208e2f
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      app/assets/js/uicore.js

+ 5 - 1
app/assets/js/uicore.js

@@ -5,7 +5,11 @@
  * modules, excluding dependencies.
  */
 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
 $(function(){