1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 08:19:13 -04:00
ports/devel/electron13/files/patch-ui_webui_resources_js_cr.js

14 lines
423 B
JavaScript

--- 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() {