| Index: remoting/webapp/crd/js/desktop_remoting.js
|
| diff --git a/remoting/webapp/crd/js/desktop_remoting.js b/remoting/webapp/crd/js/desktop_remoting.js
|
| index e94b84200fafe8314b74fb8dd2b8e83b339b4431..e1fb89779c9a50ff38eef577b110a27be5f3b460 100644
|
| --- a/remoting/webapp/crd/js/desktop_remoting.js
|
| +++ b/remoting/webapp/crd/js/desktop_remoting.js
|
| @@ -209,14 +209,11 @@ remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) {
|
| * @param {string} sharedSecret
|
| */
|
| var onPairingComplete = function(clientId, sharedSecret) {
|
| - var pairingInfo = {
|
| - pairingInfo: {
|
| - clientId: clientId,
|
| - sharedSecret: sharedSecret
|
| - }
|
| - };
|
| var connector = remoting.app.getSessionConnector();
|
| - remoting.HostSettings.save(connector.getHostId(), pairingInfo);
|
| + var host = remoting.hostList.getHostForId(connector.getHostId());
|
| + host.options.pairingInfo.clientId = clientId;
|
| + host.options.pairingInfo.sharedSecret = sharedSecret;
|
| + host.options.save();
|
| connector.updatePairingInfo(clientId, sharedSecret);
|
| };
|
| // Use the platform name as a proxy for the local computer name.
|
|
|