2
0
Fork 0
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:
Penar Musaraj 2019-07-29 16:51:08 -04:00
parent 70bd8e2dad
commit b5705348b3
2 changed files with 3 additions and 2 deletions

View file

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