Update iPad app detection for iOS 9

This commit is contained in:
Nick Winter 2015-10-01 09:23:18 -07:00
parent f3e791bcbd
commit 079e3a59f5

View file

@ -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()