aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-ui_webui_resources_js_cr.js
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-ui_webui_resources_js_cr.js')
-rw-r--r--devel/electron13/files/patch-ui_webui_resources_js_cr.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-ui_webui_resources_js_cr.js b/devel/electron13/files/patch-ui_webui_resources_js_cr.js
new file mode 100644
index 000000000000..187d7c5db2b3
--- /dev/null
+++ b/devel/electron13/files/patch-ui_webui_resources_js_cr.js
@@ -0,0 +1,14 @@
+--- ui/webui/resources/js/cr.js.orig 2021-04-14 01:09:40 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() {