Index: remoting/webapp/base/js/auth_init.js |
diff --git a/remoting/webapp/base/js/auth_init.js b/remoting/webapp/base/js/auth_init.js |
index c67e454143a62a48befa3f45afd8c475fbe29f5d..009edd149f4a5e7cb07bceb10cfccd856c85c70d 100644 |
--- a/remoting/webapp/base/js/auth_init.js |
+++ b/remoting/webapp/base/js/auth_init.js |
@@ -42,12 +42,14 @@ remoting.initIdentity = function(onUserInfoAvailable) { |
} |
} |
- remoting.identity.getUserInfo().then(function(userInfo) { |
- onUserInfoAvailable(userInfo.email, userInfo.name); |
- }).catch(function(error) { |
- onGetIdentityInfoError( |
- /** @type {remoting.Error} */ (error)); |
- }); |
+ remoting.identity.getUserInfo().then( |
+ /** @param {{email:string, name:string}} userInfo */ |
+ function(userInfo) { |
+ onUserInfoAvailable(userInfo.email, userInfo.name); |
+ }).catch(function(error) { |
+ onGetIdentityInfoError( |
+ /** @type {remoting.Error} */ (error)); |
+ }); |
}; |
/** |
@@ -64,4 +66,4 @@ remoting.handleAuthFailureAndRelaunch = function() { |
window.location.reload(); |
} |
}); |
-}; |
+}; |