summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-ui_webui_resources_js_cr.js
blob: bdf12fb5c43b1bbf3dcabb4be9dc22385f4e5db4 (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-10 11:14:40 UTC
+++ ui/webui/resources/js/cr.js
@@ -425,6 +425,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() {