| Index: remoting/webapp/client_plugin.js
|
| diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
|
| index 4252b40436a805f8ed8c2eb7cae7eda6936df56d..c2c15f2a6b4ec0d7061fa8ce694df63938579dd3 100644
|
| --- a/remoting/webapp/client_plugin.js
|
| +++ b/remoting/webapp/client_plugin.js
|
| @@ -424,6 +424,12 @@ remoting.ClientPlugin.prototype.connect = function(
|
| hostJid, hostPublicKey, localJid, sharedSecret,
|
| authenticationMethods, authenticationTag,
|
| clientPairingId, clientPairedSecret) {
|
| + var keyFilter = '';
|
| + if (navigator.platform.indexOf('Mac') == -1) {
|
| + keyFilter = 'mac';
|
| + } else if (navigator.userAgent.match(/\bCrOS\b/)) {
|
| + keyFilter = 'cros';
|
| + }
|
| this.plugin.postMessage(JSON.stringify(
|
| { method: 'connect', data: {
|
| hostJid: hostJid,
|
| @@ -434,7 +440,8 @@ remoting.ClientPlugin.prototype.connect = function(
|
| authenticationTag: authenticationTag,
|
| capabilities: this.capabilities_.join(" "),
|
| clientPairingId: clientPairingId,
|
| - clientPairedSecret: clientPairedSecret
|
| + clientPairedSecret: clientPairedSecret,
|
| + keyFilter: keyFilter
|
| }
|
| }));
|
| };
|
|
|