Skip to content

Commit

Permalink
don't forget to pass the callback when running init again after auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Oct 1, 2016
1 parent 370559e commit 85dae2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ client.init = function init(plugins, callback) {
language.set('en');
client.translate = language.translate;

client.hashauth.requestAuthentication(function afterRequest(isAuthorized) {
// if (isAuthorized) {
client.init();
// }
client.hashauth.requestAuthentication(function afterRequest ( ) {
client.init(null, callback);
});
}
});
Expand Down

0 comments on commit 85dae2b

Please sign in to comment.