mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: Correctly identify Chromium-based Edge
Chromium-based Edge browsers has only "Edg" in user agent string.
This commit is contained in:
parent
70bd8e2dad
commit
b5705348b3
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@ module BrowserDetection
|
|||
|
||||
def self.browser(user_agent)
|
||||
case user_agent
|
||||
when /Edge/i
|
||||
when /Edg/i
|
||||
:edge
|
||||
when /Opera/i, /OPR/i
|
||||
:opera
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue