Skip to content

A platform for community discussion. Free, open, simple.

UX: detect DiscourseHub user agent in recently used devices

Penar Musarajcec0b580e63b
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 7d283de71d7..68d599da38f 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -746,6 +746,7 @@ en:
opera: "Opera"
ie: "Internet Explorer"
edge: "Microsoft Edge"
+ discoursehub: "DiscourseHub app"
unknown: "unknown browser"
device:
android: "Android Device"
diff --git a/lib/browser_detection.rb b/lib/browser_detection.rb
index 78d5bd11614..a19e14c080b 100644
--- a/lib/browser_detection.rb
+++ b/lib/browser_detection.rb
@@ -14,6 +14,8 @@ module BrowserDetection
:safari
when /MSIE/i, /Trident/i
:ie
+ when /DiscourseHub/i
+ :discoursehub
else
:unknown
end