mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Correctly identify Chromium-based Edge
Chromium-based Edge browsers has only "Edg" in user agent string.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user