diff options
Diffstat (limited to 'src/electron')
-rw-r--r-- | src/electron/exception.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/sessionStorage.ts | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/electron/exception.ts b/src/electron/exception.ts index 0065e2604..ada98d17b 100644 --- a/src/electron/exception.ts +++ b/src/electron/exception.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | process.on('uncaughtException', (err) => { | 1 | process.on('uncaughtException', err => { |
2 | // handle the error safely | 2 | // handle the error safely |
3 | console.error(err); | 3 | console.error(err); |
4 | }); | 4 | }); |
diff --git a/src/electron/ipc-api/sessionStorage.ts b/src/electron/ipc-api/sessionStorage.ts index 3eda568a1..1ff0a51ea 100644 --- a/src/electron/ipc-api/sessionStorage.ts +++ b/src/electron/ipc-api/sessionStorage.ts | |||
@@ -6,7 +6,11 @@ const debug = require('debug')('Ferdi:ipcApi:sessionStorage'); | |||
6 | 6 | ||
7 | function deduceSession(serviceId: string | undefined | null): Session { | 7 | function deduceSession(serviceId: string | undefined | null): Session { |
8 | if (serviceId) { | 8 | if (serviceId) { |
9 | return session.fromPartition(serviceId === TODOS_PARTITION_ID ? TODOS_PARTITION_ID : `persist:service-${serviceId}`); | 9 | return session.fromPartition( |
10 | serviceId === TODOS_PARTITION_ID | ||
11 | ? TODOS_PARTITION_ID | ||
12 | : `persist:service-${serviceId}`, | ||
13 | ); | ||
10 | } | 14 | } |
11 | return session.defaultSession; | 15 | return session.defaultSession; |
12 | } | 16 | } |