mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: Add Chromebook detection.
This commit is contained in:
parent
2548d5b0e3
commit
8196af165d
4 changed files with 17 additions and 8 deletions
|
@ -27,6 +27,8 @@ module BrowserDetection
|
|||
case user_agent
|
||||
when /Android/i
|
||||
:android
|
||||
when /CrOS/i
|
||||
:chromebook
|
||||
when /iPad/i
|
||||
:ipad
|
||||
when /iPhone/i
|
||||
|
@ -50,6 +52,8 @@ module BrowserDetection
|
|||
case user_agent
|
||||
when /Android/i
|
||||
:android
|
||||
when /CrOS/i
|
||||
:chromeos
|
||||
when /iPhone|iPad|iPod/i
|
||||
:ios
|
||||
when /Macintosh/i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue