Closed gantrior closed 7 years ago
Thanks for the PR!
I believe that commit 517f42f should solve this. Can you please check and confirm?
Nope, does not work on Electron. (typeof require === 'function')
is evaluated as True in Electron renderer environment, so the call falls into module.exports = angularMoment(require('angular'), require('moment'))
which does not
My PR is based on the issue where is solved how to detect Electron environment, and it works quite well
Got it! Can you please update the PR for the latest code version?
rebased on the latest changes (release 1.0.0)
Thanks!
Hi, angular-moment does not load in Electron "renderer" environment. It is because
module
andmodule.exports
exists in Electron environment, but the followed code does notcode bellow works for me