Index: remoting/webapp/crd/js/oauth2.js |
diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js |
index d7498738cbc4b87069bc61878587661c69c350d8..52e12f8841480cf92bb92a8b2d7e274289e2e1cd 100644 |
--- a/remoting/webapp/crd/js/oauth2.js |
+++ b/remoting/webapp/crd/js/oauth2.js |
@@ -156,7 +156,7 @@ remoting.OAuth2.prototype.setAccessToken_ = function(token, expiration) { |
* |
* @private |
* @return {{token: string, expiration: number}} The current access token, or |
- * an invalid token if not authenticated. |
+ * an invalid token if not authenticated. |
*/ |
remoting.OAuth2.prototype.getAccessTokenInternal_ = function() { |
if (!window.localStorage.getItem(this.KEY_ACCESS_TOKEN_)) { |
@@ -167,7 +167,7 @@ remoting.OAuth2.prototype.getAccessTokenInternal_ = function() { |
if (typeof accessToken == 'string') { |
var result = base.jsonParseSafe(accessToken); |
if (result && 'token' in result && 'expiration' in result) { |
- return /** @type {{token: string, expiration: number}} */ result; |
+ return /** @type {{token: string, expiration: number}} */(result); |
} |
} |
console.log('Invalid access token stored.'); |