summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-ui_webui_resources_js_cr_js
blob: 1781a4923e298b2d05666312cca5b8e9c931e379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$OpenBSD: patch-ui_webui_resources_js_cr_js,v 1.12 2021/01/20 07:28:12 robert Exp $
Index: ui/webui/resources/js/cr.js
--- ui/webui/resources/js/cr.js.orig
+++ ui/webui/resources/js/cr.js
@@ -478,6 +478,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);