Skip to content

Commit

Permalink
call navigator.id.watch() before navigator.id.request()
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Mar 27, 2013
1 parent ae57125 commit fa6d511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persona_client.js
Expand Up @@ -16,8 +16,6 @@
}
};

navigator.id.request();

navigator.id.watch({
onlogin: function (assertion) {
Accounts.callLoginMethod({
Expand All @@ -33,5 +31,7 @@
Accounts._makeClientLoggedOut();
}
});

navigator.id.request();
};
})();

0 comments on commit fa6d511

Please sign in to comment.