diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/api/utils/auth.ts | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/api/utils/auth.ts')
-rw-r--r-- | src/api/utils/auth.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/utils/auth.ts b/src/api/utils/auth.ts index 899881e88..a7a73309d 100644 --- a/src/api/utils/auth.ts +++ b/src/api/utils/auth.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import localStorage from 'mobx-localstorage'; | 1 | import localStorage from 'mobx-localstorage'; |
2 | import { ferdiLocale, ferdiVersion } from '../../environment-remote'; | 2 | import { ferdiumLocale, ferdiumVersion } from '../../environment-remote'; |
3 | 3 | ||
4 | export const prepareAuthRequest = ( | 4 | export const prepareAuthRequest = ( |
5 | // eslint-disable-next-line unicorn/no-object-as-default-parameter | 5 | // eslint-disable-next-line unicorn/no-object-as-default-parameter |
@@ -11,10 +11,10 @@ export const prepareAuthRequest = ( | |||
11 | headers: { | 11 | headers: { |
12 | 'Content-Type': 'application/json', | 12 | 'Content-Type': 'application/json', |
13 | 'X-Franz-Source': 'desktop', | 13 | 'X-Franz-Source': 'desktop', |
14 | 'X-Franz-Version': ferdiVersion, | 14 | 'X-Franz-Version': ferdiumVersion, |
15 | 'X-Franz-platform': process.platform, | 15 | 'X-Franz-platform': process.platform, |
16 | 'X-Franz-Timezone-Offset': new Date().getTimezoneOffset(), | 16 | 'X-Franz-Timezone-Offset': new Date().getTimezoneOffset(), |
17 | 'X-Franz-System-Locale': ferdiLocale, | 17 | 'X-Franz-System-Locale': ferdiumLocale, |
18 | // @ts-expect-error Property 'headers' does not exist on type '{ method: string; }'. | 18 | // @ts-expect-error Property 'headers' does not exist on type '{ method: string; }'. |
19 | ...options.headers, | 19 | ...options.headers, |
20 | }, | 20 | }, |