Skip to content

Commit

Permalink
Clean up checking if device is JS enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Apr 13, 2013
1 parent 241ed33 commit 22523a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mobile-fu/helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module MobileFu
module Helper
JS_ENABLED_DEVICES = %w{iphone ipod ipad mobileexplorer android}

def js_enabled_mobile_device?
is_device?('iphone') || is_device?('ipod') || is_device?('ipad') || is_device?('mobileexplorer') || is_device?('android')
JS_ENABLED_DEVICES.find { |device| is_device? device }
end

def stylesheet_link_tag_with_mobilization(*sources)
Expand Down

0 comments on commit 22523a8

Please sign in to comment.