summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ui_webui_resources_js_cr.js
blob: db06cd9a93527d737b2aeb30f5ebac8736e4fc5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ui/webui/resources/js/cr.js.orig	2021-03-12 23:57:48 UTC
+++ ui/webui/resources/js/cr.js
@@ -450,6 +450,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() {