mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -114,6 +114,8 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def mobile_device?
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue