| Index: remoting/webapp/crd/js/crd_event_handlers.js
|
| diff --git a/remoting/webapp/crd/js/crd_event_handlers.js b/remoting/webapp/crd/js/crd_event_handlers.js
|
| index 4d21a5a8ee739a4e38bc620cbb4f27df8ca403a6..b730db429c0b4abc67e192712e090bd2a89a91c8 100644
|
| --- a/remoting/webapp/crd/js/crd_event_handlers.js
|
| +++ b/remoting/webapp/crd/js/crd_event_handlers.js
|
| @@ -15,12 +15,11 @@ remoting.initElementEventHandlers = function() {
|
| // We don't need a token until we authenticate, but asking for one here
|
| // handles the token-expired case earlier, avoiding asking the user for
|
| // the access code both before and after re-authentication.
|
| - remoting.identity.callWithToken(
|
| - /** @param {string} token */
|
| - function(token) {
|
| + remoting.identity.getToken().
|
| + then(function(token) {
|
| remoting.setMode(remoting.AppMode.CLIENT_UNCONNECTED);
|
| - },
|
| - remoting.showErrorMessage);
|
| + }).
|
| + catch(remoting.Error.handler(remoting.showErrorMessage));
|
| };
|
| var goFinishedIT2Me = function() {
|
| if (remoting.currentMode == remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME) {
|
|
|