mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Don't show mobile view unless mobile_view=1 param is used. Still more work to do.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user