Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. diff --git a/Backends/HTML5/kha/SystemImpl.hx b/Backends/HTML5/kha/SystemImpl.hx
  2. index c272432..ae79d81 100644
  3. --- a/Backends/HTML5/kha/SystemImpl.hx
  4. +++ b/Backends/HTML5/kha/SystemImpl.hx
  5. @@ -61,8 +61,9 @@ class SystemImpl {
  6. SystemImpl.options = options;
  7. #if sys_debug_html5
  8. Browser.window.onerror = cast errorHandler;
  9. - untyped require('web-frame').setZoomLevelLimits(1, 1);
  10. + //untyped require('web-frame').setZoomLevelLimits(1, 1);^M
  11. var electron = untyped __js__("require('electron')");
  12. + electron.webFrame.setZoomLevelLimits(1,1);^M
  13. electron.ipcRenderer.send('asynchronous-message', {type: 'showWindow', width: options.width, height: options.height});
  14. // Wait a second so the debugger can attach
  15. //Browser.window.setTimeout(function () {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement