From fa6d511a96b522bb6d2e7c5c2132e9f75f0043ef Mon Sep 17 00:00:00 2001 From: Ryan Yeske Date: Wed, 27 Mar 2013 00:16:30 -0700 Subject: [PATCH] call navigator.id.watch() before navigator.id.request() --- persona_client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/persona_client.js b/persona_client.js index 8a6c874..0341f34 100644 --- a/persona_client.js +++ b/persona_client.js @@ -16,8 +16,6 @@ } }; - navigator.id.request(); - navigator.id.watch({ onlogin: function (assertion) { Accounts.callLoginMethod({ @@ -33,5 +31,7 @@ Accounts._makeClientLoggedOut(); } }); + + navigator.id.request(); }; })();