blob: b2339361b6387232b6774ac280648353c68bf7ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- ui/webui/resources/js/cr.js.orig 2020-05-13 18:40:03 UTC
+++ ui/webui/resources/js/cr.js
@@ -430,6 +430,11 @@ var cr = cr || function(global) {
get isMac() {
return /Mac/.test(navigator.platform);
},
+
+ /** Whether this is on *BSD. */
+ get isBSD() {
+ return /BSD/.test(navigator.userAgent);
+ },
/** Whether this is on the Windows platform or not. */
get isWindows() {
|