Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed May 18, 2017
1 parent adee9da commit badc490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/twitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ module.exports = {
},

getEmberView(elementID) {
return lookup('-view-registry:main')[elementID];
const obj = lookup('-view-registry:main');
return obj ? obj[elementID] : null;
},

getCurrentChannel() {
Expand Down

0 comments on commit badc490

Please sign in to comment.