-
-
Save augustlate/2bd93f53af36de3caea25baf8c4d6c0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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