Skip to content

Commit

Permalink
Merge pull request #1 from gjcoombes/gjcoombes-patch-1
Browse files Browse the repository at this point in the history
Remove reference to applitude and test for app.
  • Loading branch information
gjcoombes committed Nov 11, 2015
2 parents 20114c3 + 13f5eb4 commit b99b285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/browser-cuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@
};

// don't change anything from here down.
if (app.register) {
if (app && app.register) {
app.register(namespace, api);
} else if (typeof module !== 'undefined') {
module.exports = api;
} else {
app[namespace] = api;
}

}(this.applitude || this));
}(this));

0 comments on commit b99b285

Please sign in to comment.