michaeltrim Posted November 16, 2016 Share Posted November 16, 2016 Hi, Can anyone recommended a method for integrating Babylon into a an electron app, built with Webpack, using React/Redux? When I import Babylon either as an inline script in head or as an ES6 import, I get the same error which i assume is connected to Electron. I've attached an image of the top of the stack trace and the line in babylon that errors is the this.resize(); as per below; var limitDeviceRatio=options.limitDeviceRatio||window.devicePixelRatio||1.0;this._hardwareScalingLevel=adaptToDeviceRatio?1.0/Math.min(limitDeviceRatio,window.devicePixelRatio||1.0):1.0;this.resize();// Any ideas greatly appreciated. Michael Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.