From f37e4617093be1d03ba2a9b91fab6e984d4dccc2 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Thu, 5 Jan 2012 14:29:17 -0500 Subject: [PATCH] Confirm the browser is iOS before checking the version of iOS. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index ecea2516..3408252d 100644 --- a/index.html +++ b/index.html @@ -2368,7 +2368,7 @@

Development

This bug was reported and fixed in iOS 4.2 */ - if (Browsers.iOS < 4.2) + if (Browsers.iOS && Browsers.iOS < 4.2) return this.element.canPlayType(t) == 'probably' || this.element.canPlayType(t) == 'maybe'; else return this.element.canPlayType(t) == 'probably'; @@ -2466,7 +2466,7 @@

Development

This bug was reported and fixed in iOS 4.2 */ - if (Browsers.iOS < 4.2) + if (Browsers.iOS && Browsers.iOS < 4.2) return this.element.canPlayType(t) == 'probably' || this.element.canPlayType(t) == 'maybe'; else return this.element.canPlayType(t) == 'probably';