Skip to content

Instantly share code, notes, and snippets.

@augustlate
Created December 6, 2016 17:11
Show Gist options
  • Save augustlate/2bd93f53af36de3caea25baf8c4d6c0a to your computer and use it in GitHub Desktop.
Save augustlate/2bd93f53af36de3caea25baf8c4d6c0a to your computer and use it in GitHub Desktop.
diff --git a/Backends/HTML5/kha/SystemImpl.hx b/Backends/HTML5/kha/SystemImpl.hx
index c272432..ae79d81 100644
--- a/Backends/HTML5/kha/SystemImpl.hx
+++ b/Backends/HTML5/kha/SystemImpl.hx
@@ -61,8 +61,9 @@ class SystemImpl {
SystemImpl.options = options;
#if sys_debug_html5
Browser.window.onerror = cast errorHandler;
- untyped require('web-frame').setZoomLevelLimits(1, 1);
+ //untyped require('web-frame').setZoomLevelLimits(1, 1);^M
var electron = untyped __js__("require('electron')");
+ electron.webFrame.setZoomLevelLimits(1,1);^M
electron.ipcRenderer.send('asynchronous-message', {type: 'showWindow', width: options.width, height: options.height});
// Wait a second so the debugger can attach
//Browser.window.setTimeout(function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment