Check for new iPad User-Agent

This commit is contained in:
Sam Soffes 2015-10-16 14:42:25 -07:00
parent 3d1e5f1e34
commit 59f987e105

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('iPhone OS') isnt -1
@isIPadApp = webkit?.messageHandlers? and navigator.userAgent?.indexOf('CodeCombat-iPad') isnt -1
$('body').addClass 'ipad' if @isIPadApp
@tracker = new Tracker()
@facebookHandler = new FacebookHandler()