Skip to content

Commit

Permalink
fix factoryFor error
Browse files Browse the repository at this point in the history
Fix of the error below : 

You attempted to access "ifa" on a factory manager created by container#factoryFor. "ifa" is not a member of a factory manager."
  • Loading branch information
BnitoBzh authored Jul 11, 2017
1 parent 8ce0610 commit 1ce1507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/initializers/asset-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function initialize(app) {
const container = app.__container__;
let config;
if(container.factoryFor) {
config = container.factoryFor('config:environment');
config = container.factoryFor('config:environment').class;
} else {
config = container.lookupFactory('config:environment');
}
Expand Down

0 comments on commit 1ce1507

Please sign in to comment.