summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 20:33:02 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 20:33:02 +0000
commitc257d72f8d4e6e0075f05834064bd2e61657fd52 (patch)
treebade96b21c895bb090e6efd405918badfa5a274e /remoting/webapp
parent3f3a014da89631148efdb6eedaf7ec8d2ba59ace (diff)
downloadchromium_src-c257d72f8d4e6e0075f05834064bd2e61657fd52.zip
chromium_src-c257d72f8d4e6e0075f05834064bd2e61657fd52.tar.gz
chromium_src-c257d72f8d4e6e0075f05834064bd2e61657fd52.tar.bz2
Don't check the tab type for apps v2.
The API we use to check the tab type doesn't exist in apps v2, and the check isn't needed there anyway. BUG=267895 Review URL: https://chromiumcodereview.appspot.com/23150002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r--remoting/webapp/remoting.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index 5be27ef..7737970 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -125,16 +125,18 @@ remoting.init = function() {
}
remoting.hostList.load(onLoad);
- // Show the tab-type warnings if necessary.
- /** @param {boolean} isWindowed */
- var onIsWindowed = function(isWindowed) {
- if (!isWindowed &&
- navigator.platform.indexOf('Mac') == -1) {
- document.getElementById('startup-mode-box-me2me').hidden = false;
- document.getElementById('startup-mode-box-it2me').hidden = false;
- }
- };
- isWindowed_(onIsWindowed);
+ // For Apps v1, check the tab type to warn the user if they are not getting
+ // the best keyboard experience.
+ if (!remoting.isAppsV2 && navigator.platform.indexOf('Mac') == -1) {
+ /** @param {boolean} isWindowed */
+ var onIsWindowed = function(isWindowed) {
+ if (!isWindowed) {
+ document.getElementById('startup-mode-box-me2me').hidden = false;
+ document.getElementById('startup-mode-box-it2me').hidden = false;
+ }
+ };
+ isWindowed_(onIsWindowed);
+ }
};
/**