Skip to content

Commit

Permalink
correctly detect iPhone 5
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianFrank committed Jan 18, 2013
1 parent 6973670 commit 97b3770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/js/controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RELOAD_INTERVAL = 500
guessAtDeviceFamilyBasedOnViewDump = (viewHeir)->
switch viewHeir.accessibilityFrame.size.height
when 1024 then 'ipad'
when 480 then 'iphone'
when 480, 568 then 'iphone'
else
console.warn( "couldn't recognize device family based on screen height of " + viewHeir.accessibilityFrame.size.height + "px" )
'unknown'
Expand Down

0 comments on commit 97b3770

Please sign in to comment.