diff options
Diffstat (limited to 'remoting/webapp/app_remoting/js/app_remoting.js')
-rw-r--r-- | remoting/webapp/app_remoting/js/app_remoting.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/webapp/app_remoting/js/app_remoting.js b/remoting/webapp/app_remoting/js/app_remoting.js index c0630c7..541168c 100644 --- a/remoting/webapp/app_remoting/js/app_remoting.js +++ b/remoting/webapp/app_remoting/js/app_remoting.js @@ -157,7 +157,11 @@ remoting.AppRemoting.prototype.startApplication_ = function(token) { host['sharedSecret']); }; - that.sessionConnector_.connectMe2App(host, fetchThirdPartyToken); + that.sessionConnector_.connect( + remoting.Application.Mode.APP_REMOTING, host, + new remoting.CredentialsProvider( + {fetchThirdPartyToken: fetchThirdPartyToken})); + } else if (response && response.status == 'pending') { that.onError_(new remoting.Error( remoting.Error.Tag.SERVICE_UNAVAILABLE)); |