summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/host_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/host_controller.js')
-rw-r--r--remoting/webapp/host_controller.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 63ef1f1..845e65d 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -225,14 +225,14 @@ remoting.HostController.prototype.start = function(hostPin, consent, callback) {
* @param {string} publicKey */
function onKeyGenerated(privateKey, publicKey) {
remoting.oauth2.callWithToken(
- /** @param {string?} oauthToken */
+ /** @param {string} oauthToken */
function(oauthToken) {
- if (oauthToken) {
- doRegisterHost(privateKey, publicKey, oauthToken);
- } else {
- // TODO(jamiewalch): Have a more specific error code here?
- callback(remoting.HostController.AsyncResult.FAILED);
- }
+ doRegisterHost(privateKey, publicKey, oauthToken);
+ },
+ /** @param {remoting.Error} error */
+ function(error) {
+ // TODO(jamiewalch): Have a more specific error code here?
+ callback(remoting.HostController.AsyncResult.FAILED);
});
};