Skip to content

Commit

Permalink
Merge pull request #237 from egilkh/master
Browse files Browse the repository at this point in the history
Do #159
  • Loading branch information
egilkh authored Aug 11, 2016
2 parents 253b718 + 5c705e2 commit c217d5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ngStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

if (typeof define === 'function' && define.amd) {
define(['angular'], factory);
} else if (root.hasOwnProperty('angular')) {
} else if (typeof exports === 'object') {
factory(require('angular'));
module.exports = 'ngStorage';
} else {
// Browser globals (root is window), we don't register it.
factory(root.angular);
} else if (typeof exports === 'object') {
module.exports = factory(require('angular'));
}
}(this , function (angular) {
'use strict';
Expand Down

0 comments on commit c217d5b

Please sign in to comment.