aboutsummaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-ui_webui_resources_js_cr.js
blob: 01846d7fb613ee3bda796ae076abe23c9bc92a2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ui/webui/resources/js/cr.js.orig	2022-10-01 07:40:07 UTC
+++ ui/webui/resources/js/cr.js
@@ -438,6 +438,11 @@ var cr = cr || function(global) {
       return returnValue;
     },
 
+    /** Whether this is on *BSD. */
+    get isBSD() {
+      return /BSD/.test(navigator.userAgent);
+    },
+
     /** Whether this is on vanilla Linux (not chromeOS). */
     get isLinux() {
       return /Linux/.test(navigator.userAgent);