Skip to content

Commit

Permalink
Merge pull request #748 from rwwagner90/main-outlet
Browse files Browse the repository at this point in the history
Fix loading main outlet
  • Loading branch information
teddyzeenny authored Feb 22, 2018
2 parents 66e7ec3 + 45e7371 commit d8c3978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember_debug/libs/glimmer-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ export default class {
* @return {Object} The application outlet state
*/
getApplicationOutlet() {
return this.getRoot().outletState.outlets.main;
// Support multiple paths to outletState for various Ember versions
const outletState = this.getRoot().outletState || this.getRoot().state.ref.outletState;
return outletState.outlets.main;
}

/**
Expand Down

0 comments on commit d8c3978

Please sign in to comment.