From 9165097ea1e3e99d440e18e7e4cf9cfd7305ebe8 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 23 Mar 2011 17:00:56 -0700 Subject: [PATCH] Stricter test for Android WebKit browsers. The previous test mistakenly used Android-WebKit-specific code for other browsers, like Opera and Firefox. --- dev/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/src/main.js b/dev/src/main.js index 15dbb8aa1..04d00b70c 100644 --- a/dev/src/main.js +++ b/dev/src/main.js @@ -279,7 +279,7 @@ VideoJS.extend({ var match = navigator.userAgent.match(/OS (\d+)_/i); if (match && match[1]) { return match[1]; } }, - isAndroid: function(){ return navigator.userAgent.match(/Android/i) !== null; }, + isAndroid: function(){ return navigator.userAgent.match(/Android.*AppleWebKit/i) !== null; }, androidVersion: function() { var match = navigator.userAgent.match(/Android (\d+)\./i); if (match && match[1]) { return match[1]; }