2
0
Fork 0
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:
Bianca Nenciu 2019-05-30 16:29:43 +03:00
parent 2548d5b0e3
commit 8196af165d
4 changed files with 17 additions and 8 deletions

View file

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