Skip to content

Commit ed6a5f5

Browse files
committed
fix(settings): add official user-agent reduction reference link
Signed-off-by: Faizan Kamal <[email protected]>
1 parent bbca4fe commit ed6a5f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/settings/src/components/AuthToken.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const userAgentMap = {
112112
chrome: /^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,
113113
// Safari User Agent from http://www.useragentstring.com/pages/Safari/
114114
safari: /^Mozilla\/5\.0 \([^)]*(Windows|OS X)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)(?: Version\/([0-9]+)[0-9.]+)? Safari\/[0-9.A-Z]+$/,
115-
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
116-
androidChrome: /Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/,
115+
// Android Chrome user agent (updated for modern Chrome): https://www.chromium.org/updates/ua-reduction/#mobile-and-tablet
116+
androidChrome: /^Mozilla\/5\.0 \([^)]*Linux; Android[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,
117117
iphone: / *CPU +iPhone +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,
118118
ipad: /\(iPad; *CPU +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,
119119
iosClient: /^Mozilla\/5\.0 \(iOS\) (?:ownCloud|Nextcloud)-iOS.*$/,

0 commit comments

Comments
 (0)