Index: remoting/webapp/client_plugin.js |
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js |
index b281d24cd1219e7281021f687e3eb7b8a054ea4f..b7ac22a692870507895cd72f7fe669c29b3a4829 100644 |
--- a/remoting/webapp/client_plugin.js |
+++ b/remoting/webapp/client_plugin.js |
@@ -466,9 +466,9 @@ remoting.ClientPlugin.prototype.connect = function( |
authenticationMethods, authenticationTag, |
clientPairingId, clientPairedSecret) { |
var keyFilter = ''; |
- if (navigator.platform.indexOf('Mac') == -1) { |
+ if (remoting.platformIsMac()) { |
keyFilter = 'mac'; |
- } else if (navigator.userAgent.match(/\bCrOS\b/)) { |
+ } else if (remoting.platformIsChromeOS()) { |
keyFilter = 'cros'; |
} |
this.plugin.postMessage(JSON.stringify( |