Today I use Raphaël 2.1.2(JavaScript Vector Library) and morris.js v0.5.0 as below in my html and run under Electron 0.33.6.
<script src="js/raphael-min.js" type="text/javascript"></script>
<script src="js/morris.min.js" type="text/javascript"></script>
But the Electron(Renderer Window) show two errors below:
raphael-min.js:10 Uncaught TypeError: Cannot read property ‘on’ of undefined
morris.min.js:6 Uncaught ReferenceError: Raphael is not defined
If I load this html into the Google Chrome browser, Chrome shows no errors.
I think this is maybe some conflict of raphael js and electron, Can anyone tell me how to resolve this problem, Thanks!