mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Update iPad app detection for iOS 9
This commit is contained in:
parent
f3e791bcbd
commit
079e3a59f5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue