From 079e3a59f5d5b539e87b85d7eff778b943ddf3a0 Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Thu, 1 Oct 2015 09:23:18 -0700 Subject: [PATCH] Update iPad app detection for iOS 9 --- app/core/application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/application.coffee b/app/core/application.coffee index dc212dec5..55b54f6e8 100644 --- a/app/core/application.coffee +++ b/app/core/application.coffee @@ -46,7 +46,7 @@ console.debug ?= console.log # Needed for IE10 and earlier Application = initialize: -> Router = require('core/Router') @isProduction = -> document.location.href.search('https?://localhost:3000') is -1 - @isIPadApp = webkit?.messageHandlers? and navigator.userAgent?.indexOf('iPad') isnt -1 + @isIPadApp = webkit?.messageHandlers? and navigator.userAgent?.indexOf('iPhone OS') isnt -1 $('body').addClass 'ipad' if @isIPadApp @tracker = new Tracker() @facebookHandler = new FacebookHandler()