Skip to content

Commit

Permalink
Fixes issue 243
Browse files Browse the repository at this point in the history
Add Android devices support.


git-svn-id: http://ovz-web-panel.googlecode.com/svn/trunk@821 5ed322ce-bccc-11de-a0e9-83d03c287164
  • Loading branch information
sibprogrammer committed Jan 17, 2011
1 parent 1964d74 commit 081c29e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def ajax_request_handler(exception)
end

def iphone?
request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
agent = request.env["HTTP_USER_AGENT"]
agent && (agent[/(Mobile\/.+Safari)/] || agent[/Android/])
end

def set_response_format
Expand Down

0 comments on commit 081c29e

Please sign in to comment.