mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Detect DiscourseHub user agent.
It used to show up as an unknown device and browser in user preferences (Recently Used Devices).
This commit is contained in:
@@ -16,7 +16,7 @@ module BrowserDetection
|
||||
:safari
|
||||
when /MSIE/i, /Trident/i
|
||||
:ie
|
||||
when /DiscourseHub/i
|
||||
when /Discourse/i
|
||||
:discoursehub
|
||||
else
|
||||
:unknown
|
||||
@@ -54,7 +54,7 @@ module BrowserDetection
|
||||
:android
|
||||
when /CrOS/i
|
||||
:chromeos
|
||||
when /iPhone|iPad|iPod/i
|
||||
when /iPhone|iPad|iPod|Darwin/i
|
||||
:ios
|
||||
when /Macintosh/i
|
||||
:macos
|
||||
|
||||
Reference in New Issue
Block a user