mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 09:03:44 +08:00
Don't show mobile view unless mobile_view=1 param is used. Still more work to do.
This commit is contained in:
parent
c0b3a0ec45
commit
a3f3b086f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user