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