Skip to content

Commit

Permalink
Always add angular2now to window (if window exists).
Browse files Browse the repository at this point in the history
This ensures backwards compatibility for apps that don't use require or systemjs.
  • Loading branch information
pbastowski committed Jan 3, 2016
1 parent 09df559 commit 49af710
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/angular2-now.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ function init() {

if (typeof Meteor === 'undefined') {
init();
}

if (typeof window !== 'undefined') {
window.angular2now = angular2now;
}
if (typeof window !== 'undefined') {
window.angular2now = angular2now;
}

export default angular2now;

0 comments on commit 49af710

Please sign in to comment.