Skip to content

Commit

Permalink
Changing up default style overrides and adding in the palm pre
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanlim committed Jul 24, 2009
1 parent c8e8d46 commit 5a32b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mobile_fu.rb
Expand Up @@ -10,7 +10,7 @@ module MobileFu
'samsung|sanyo|sharp|telit|tsm|mobile|mini|windows ce|smartphone|' +
'240x320|320x320|mobileexplorer|j2me|sgh|portable|sprint|vodafone|' +
'docomo|kddi|softbank|pdxgw|j-phone|astel|minimo|plucker|netfront|' +
'xiino|mot-v|mot-e|portalmmm|sagem|sie-s|sie-m|android|ipod'
'xiino|mot-v|mot-e|portalmmm|sagem|sie-s|sie-m|android|ipod|pre'

def self.included(base)
base.extend(ClassMethods)
Expand Down
6 changes: 4 additions & 2 deletions lib/mobilized_styles.rb
Expand Up @@ -35,8 +35,10 @@ def user_agent_device_name
'mobileexplorer'
elsif ua.index('blackberry')
'blackberry'
elsif ua.index('iphone') || ua.index('ipod') || ua.index('android')
'webkit'
elsif ua.index('iphone') || ua.index('ipod')
'iphone'
elsif ua.index('android')
'android'
elsif ua.index('nokia')
'nokia'
elsif ua.index('palm')
Expand Down

0 comments on commit 5a32b39

Please sign in to comment.