Skip to content
Browse files

Changing up default style overrides and adding in the palm pre

  • Loading branch information...
1 parent c8e8d46 commit 5a32b39a75fa77a9d0266a9753c20d3b59fde75e @brendanlim committed Jul 24, 2009
Showing with 5 additions and 3 deletions.
  1. +1 −1 lib/mobile_fu.rb
  2. +4 −2 lib/mobilized_styles.rb
View
2 lib/mobile_fu.rb
@@ -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)
View
6 lib/mobilized_styles.rb
@@ -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')

0 comments on commit 5a32b39

Please sign in to comment.
Something went wrong with that request. Please try again.