From fd7112c510c4298561143f3fe258bb7f5779a7af Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Tue, 29 Jan 2013 17:02:28 +0000 Subject: [PATCH] Fix iOS detection. --- javascripts/views/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/views/chrome.js b/javascripts/views/chrome.js index 908455b..98034aa 100644 --- a/javascripts/views/chrome.js +++ b/javascripts/views/chrome.js @@ -5,7 +5,7 @@ function(iOS, header, footer) { var Chrome = Backbone.View.extend({ initialize: function() { - if (phonegap && (device.platform == "iOS" || device.platform == "iPhone Simulator")) { + if (phonegap && device.platform.match(/(iPhone|iPad)( Simulator)?/)) { new iOS({ collection: lines }); } else if (phonegap && device.platform == "Android") {