diff --git a/dist/angular-localForage.js b/dist/angular-localForage.js index ad541a9..73c321d 100644 --- a/dist/angular-localForage.js +++ b/dist/angular-localForage.js @@ -14,7 +14,11 @@ return factory(angular, localforage); }); } else if(typeof exports === 'object' || typeof global === 'object') { - module.exports = factory(angular, require('localforage')); // Node/Browserify + if(typeof module === 'undefined') { + global.module.exports = factory(angular, require('localforage')); // NW.js + } else { + modules.exports = factory(angular, require('localforage')); // Node/Browserify + } } else { return factory(angular, root.localforage); // Browser }