Skip to content

Commit

Permalink
make require('@flowjs/ng-flow/index') backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grainger committed Jul 6, 2017
1 parent 09107fe commit 938b3ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ try {
} catch (e) {
// do nothing
}

if (typeof window === 'object') {
window.Flow = require('@flowjs/flow.js');
}
module.exports = require('./src/ng-flow');

0 comments on commit 938b3ba

Please sign in to comment.