| 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 9196e6b3792fc4bae2e7d473d57ada92f35bf7f1..74fc5996081f992b431dbf1829a4fec455205855 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) {
|
|
|