Skip to content

Commit

Permalink
fix: Check-in src changes for NW.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Trinh authored and Scott Trinh committed Jan 7, 2017
1 parent 0346e9c commit 9745113
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/angular-localForage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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 {
module.exports = factory(angular, require('localforage')); // Node/Browserify
}
} else {
return factory(angular, root.localforage); // Browser
}
Expand Down

0 comments on commit 9745113

Please sign in to comment.