Skip to content

Commit f1cf29c

Browse files
committed
Add ChromeOS
1 parent 9bd0e3a commit f1cf29c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/App/Http/Traits/UserAgentDetails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static function details($ua)
1515
{
1616
$ua = is_null($ua) ? $_SERVER['HTTP_USER_AGENT'] : $ua;
1717
// Enumerate all common platforms, this is usually placed in braces (order is important! First come first serve..)
18-
$platforms = 'Windows|iPad|iPhone|Macintosh|Android|BlackBerry|Unix|Linux|X11';
18+
$platforms = 'Windows|iPad|iPhone|Macintosh|Android|BlackBerry|Unix|Linux|X11|CrOS';
1919

2020
// All browsers except MSIE/Trident and..
2121
// NOT for browsers that use this syntax: Version/0.xx Browsername

src/resources/views/logger/activity-log-item.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123
$platformIcon = 'fa-linux';
124124
break;
125125
126+
case 'CrOS':
127+
$platformIcon = 'fa-chrome';
128+
break;
129+
126130
default:
127131
$platformIcon = 'fa-';
128132
break;

src/resources/views/logger/partials/activity-table.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@
185185
$platformIcon = 'fa-linux';
186186
break;
187187
188+
case 'CrOS':
189+
$platformIcon = 'fa-chrome';
190+
break;
191+
188192
default:
189193
$platformIcon = 'fa-';
190194
break;

0 commit comments

Comments
 (0)