Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding in iPad to supported mobile device list
- Loading branch information
1 parent
79c5535
commit 8aa797b
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8aa797b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have this commit in our code, but iPad is already coming in as mobile. I'd like to exclude it as a mobile device, since the site would probably look fine without the mobile stylesheet. This is the info:
Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10
How do I exclude it as a mobile device?
8aa797b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at lib/mobile_fu.rb you just need to remove 'ipad' and any instance of 'ipad' in mobilized_styles.rb and mobile_fu_helper.rb
8aa797b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kineticac I just wanted to let you know that I removed "ipad" from mobile_fu.rb, mobilized_styles.rb and mobile_fu_helper.rb and the iPad was still being served up mobile views. In addition to those changes, I had to modify is_mobile_device? to the following:
I know, this is hacky but it had to be done.