diff options
Diffstat (limited to 'www/chromium/files/patch-ui_webui_resources_js_cr.js')
-rw-r--r-- | www/chromium/files/patch-ui_webui_resources_js_cr.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/chromium/files/patch-ui_webui_resources_js_cr.js b/www/chromium/files/patch-ui_webui_resources_js_cr.js index adddca1edade..294291d69d23 100644 --- a/www/chromium/files/patch-ui_webui_resources_js_cr.js +++ b/www/chromium/files/patch-ui_webui_resources_js_cr.js @@ -1,14 +1,14 @@ ---- ui/webui/resources/js/cr.js.orig 2021-04-14 18:41:39 UTC +--- ui/webui/resources/js/cr.js.orig 2022-02-07 13:39:41 UTC +++ ui/webui/resources/js/cr.js -@@ -450,6 +450,11 @@ var cr = cr || function(global) { - get isMac() { - return /Mac/.test(navigator.platform); +@@ -441,6 +441,11 @@ var cr = cr || function(global) { + return returnValue; }, -+ + + /** Whether this is on *BSD. */ + get isBSD() { + return /BSD/.test(navigator.userAgent); + }, - - /** Whether this is on the Windows platform or not. */ - get isWindows() { ++ + /** Whether this is on vanilla Linux (not chromeOS). */ + get isLinux() { + return /Linux/.test(navigator.userAgent); |