Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 () {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement