Index: remoting/webapp/crd/js/host.js |
diff --git a/remoting/webapp/crd/js/host.js b/remoting/webapp/crd/js/host.js |
index 59129b1dfc2f3f0cbcd56e287e9b8b1a3806e040..6bc0bbadc026ff34102a57c4c1e1a40f55ca0670 100644 |
--- a/remoting/webapp/crd/js/host.js |
+++ b/remoting/webapp/crd/js/host.js |
@@ -62,6 +62,8 @@ remoting.Host.Options = function(hostId) { |
this.remapKeys = ''; |
/** @type {number} */ |
this.desktopScale = 1; |
+ /** @type {remoting.PairingInfo} */ |
+ this.pairingInfo = {clientId: '', sharedSecret: ''}; |
}; |
remoting.Host.Options.prototype.save = function() { |
@@ -88,6 +90,9 @@ remoting.Host.Options.prototype.load = function() { |
that.shrinkToFit = getBooleanAttr(options, 'shrinkToFit', true); |
that.desktopScale = getNumberAttr(options, 'desktopScale', 1); |
that.remapKeys = getStringAttr(options, 'remapKeys', ''); |
+ that.pairingInfo = |
+ /** @type {remoting.PairingInfo} */ ( |
+ getObjectAttr(options, 'pairingInfo', that.pairingInfo)); |
}); |
}; |