diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-23 18:10:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 16:10:39 +0000 |
commit | 6b2c2b8dfb86245a1747bf7977159f5129461863 (patch) | |
tree | 28944f62a962d8a658262ea902f8554d4419fa9e /src/index.ts | |
parent | chore: featureStore and GlobalErrorStore JS => TS (diff) | |
download | ferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.tar.gz ferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.tar.zst ferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.zip |
chore: servicesStore + models into typescript (#344)
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index fa957bf10..0fccac6e9 100644 --- a/src/index.ts +++ b/src/index.ts | |||
@@ -30,7 +30,7 @@ import { | |||
30 | userDataRecipesPath, | 30 | userDataRecipesPath, |
31 | userDataPath, | 31 | userDataPath, |
32 | } from './environment-remote'; | 32 | } from './environment-remote'; |
33 | import { ifUndefinedBoolean } from './jsUtils'; | 33 | import { ifUndefined } from './jsUtils'; |
34 | 34 | ||
35 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | 35 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; |
36 | import ipcApi from './electron/ipc-api'; | 36 | import ipcApi from './electron/ipc-api'; |
@@ -91,7 +91,7 @@ const settings = new Settings('app', DEFAULT_APP_SETTINGS); | |||
91 | const proxySettings = new Settings('proxy'); | 91 | const proxySettings = new Settings('proxy'); |
92 | 92 | ||
93 | const retrieveSettingValue = (key: string, defaultValue: boolean) => | 93 | const retrieveSettingValue = (key: string, defaultValue: boolean) => |
94 | ifUndefinedBoolean(settings.get(key), defaultValue); | 94 | ifUndefined<boolean>(settings.get(key), defaultValue); |
95 | 95 | ||
96 | const liftSingleInstanceLock = retrieveSettingValue( | 96 | const liftSingleInstanceLock = retrieveSettingValue( |
97 | 'liftSingleInstanceLock', | 97 | 'liftSingleInstanceLock', |