Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2511)

Unified Diff: chrome/renderer/resources/offline.js

Issue 809363003: Fix iOS useragent detection on offline interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/offline.js
diff --git a/chrome/renderer/resources/offline.js b/chrome/renderer/resources/offline.js
index 27f9d80847abfe283f635e5c5c60e2ada204da94..4575a9c849a5720b41eb3698d466cd4891cb1160 100644
--- a/chrome/renderer/resources/offline.js
+++ b/chrome/renderer/resources/offline.js
@@ -82,13 +82,14 @@ var FPS = 60;
var IS_HIDPI = window.devicePixelRatio > 1;
/** @const */
-var IS_MOBILE = window.navigator.userAgent.indexOf('Mobi') > -1;
+var IS_IOS =
+ window.navigator.userAgent.indexOf('UIWebViewForStaticFileContent') > -1;
/** @const */
-var IS_TOUCH_ENABLED = 'ontouchstart' in window;
+var IS_MOBILE = window.navigator.userAgent.indexOf('Mobi') > -1 || IS_IOS;
/** @const */
-var IS_IOS = window.navigator.userAgent.indexOf('CriOS') > -1;
+var IS_TOUCH_ENABLED = 'ontouchstart' in window;
/**
* Default game configuration.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698