summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ui_webui_resources_js_cr.js
blob: 4863df7f9ff13df668b8fa309eaf5a8bbb3f3ac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ui/webui/resources/js/cr.js.orig	2019-09-09 21:55:47 UTC
+++ ui/webui/resources/js/cr.js
@@ -436,6 +436,11 @@ var cr = cr || function(global) {
     get doc() {
       return document;
     },
+    
+    /** Whether this is on *BSD. */
+    get isBSD() {
+      return /BSD/.test(navigator.userAgent);
+    },
 
     /** Whether we are using a Mac or not. */
     get isMac() {