Don't show mobile view unless mobile_view=1 param is used. Still more work to do.

This commit is contained in:
Neil Lalonde 2013-09-05 16:28:57 -04:00
parent c0b3a0ec45
commit a3f3b086f3
1 changed files with 3 additions and 1 deletions

View File

@ -114,6 +114,8 @@ module ApplicationHelper
end
def mobile_device?
request.user_agent =~ /Mobile|webOS/
# For now, don't show mobile view unless you put ?mobile_view=1 in the URL.
# request.user_agent =~ /Mobile|webOS/
false
end
end