New API for gem browser 2, use ua instand of "Generic Browser".

This commit is contained in:
Martin Edenhofer 2016-03-01 16:53:25 +01:00
parent 286e1591c6
commit ca9651d974

View file

@ -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]