diff options
Diffstat (limited to 'remoting/webapp/remoting.js')
-rw-r--r-- | remoting/webapp/remoting.js | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js index b0519c2..c393ab1 100644 --- a/remoting/webapp/remoting.js +++ b/remoting/webapp/remoting.js @@ -141,16 +141,6 @@ remoting.init = function() { }; /** - * Returns whether or not IT2Me is supported via the host NPAPI plugin. - * - * @return {boolean} - */ -function isIT2MeSupported_() { - // Currently, IT2Me on Chromebooks is not supported. - return !remoting.runningOnChromeOS(); -} - -/** * Display the user's email address and allow access to the rest of the app, * including parsing URL parameters. * @@ -164,6 +154,21 @@ remoting.onEmail = function(email) { }; /** + * Returns whether or not IT2Me is supported via the host NPAPI plugin. + * + * @return {boolean} + */ +function isIT2MeSupported_() { + var container = document.getElementById('host-plugin-container'); + /** @type {remoting.HostPlugin} */ + var plugin = remoting.HostSession.createPlugin(); + container.appendChild(plugin); + var result = plugin.hasOwnProperty('REQUESTED_ACCESS_CODE'); + container.removeChild(plugin); + return result; +} + +/** * initHomeScreenUi is called if the app is not starting up in session mode, * and also if the user cancels pin entry or the connection in session mode. */ |