1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00

Fix iOS detection.

This commit is contained in:
Dan Barber 2013-01-29 17:02:28 +00:00
parent 813913ac57
commit fd7112c510

View File

@ -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") {