New API for gem browser 2, use ua instand of "Generic Browser".
This commit is contained in:
parent
286e1591c6
commit
ca9651d974
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ store device for user
|
|||
}
|
||||
|
||||
# generate device name
|
||||
if browser[:name] == 'Generic Browser'
|
||||
browser[:name] = user_agent
|
||||
end
|
||||
name = ''
|
||||
if browser[:plattform] && browser[:plattform] != 'Other'
|
||||
name = browser[:plattform]
|
||||
|
|
Loading…
Reference in a new issue