blob: 2df5b1190a27710b1bdf8f97c949f9479151d1fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- ui/webui/resources/js/cr.js.orig 2019-12-16 21:51:34 UTC
+++ ui/webui/resources/js/cr.js
@@ -437,6 +437,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() {
|