aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar Max Wipfli <mail@maxwipfli.ch>2022-05-06 00:29:39 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-05 22:29:39 +0000
commitacb60bf20d3db74e2689f95e23850ce170827969 (patch)
tree5d6236e235640fe441c3f5451991085e331663c1 /src/helpers
parentRearrange input fields on Settings screen and add labels for organization (#101) (diff)
downloadferdium-app-acb60bf20d3db74e2689f95e23850ce170827969.tar.gz
ferdium-app-acb60bf20d3db74e2689f95e23850ce170827969.tar.zst
ferdium-app-acb60bf20d3db74e2689f95e23850ce170827969.zip
fix: modify user agent string on Linux (#99)
On Linux, the user agent includes 'X11; Ubuntu; Linux ${arch}'. This user agent string break the Google Calendar service because the server decides to serve to mobile site instead of the desktop site based on that string. On my non-Ubuntu Linux machine, the UA used is almost identical, except for the 'Ubuntu; ' part. Removing that part from the default UA we use fixes that particular error and seems no to break any other services.
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/userAgent-helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index c1e8e02da..52568555c 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -28,7 +28,7 @@ function windows() {
28 28
29function linux() { 29function linux() {
30 const archString = is64Bit ? 'x86_64' : osArch; 30 const archString = is64Bit ? 'x86_64' : osArch;
31 return `X11; Ubuntu; Linux ${archString}`; 31 return `X11; Linux ${archString}`;
32} 32}
33 33
34export default function userAgent() { 34export default function userAgent() {