Skip to content

Commit

Permalink
Code changes for submission
Browse files Browse the repository at this point in the history
wrapping some startup code to comply with Mozilla code standards.
  • Loading branch information
cgfrost committed Sep 17, 2015
1 parent 6a3c9f3 commit 1240cfb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
}
});

if (account.isReady()) {
rtm.get('rtm.auth.checkToken', {}, () => {
events.do('token.init', 'index');
});
}
(function () {
if (account.isReady()) {
rtm.get('rtm.auth.checkToken', {}, () => {
events.do('token.init', 'index');
});
}
}());

}());

0 comments on commit 1240cfb

Please sign in to comment.