aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron/ipc-api/sessionStorage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron/ipc-api/sessionStorage.ts')
-rw-r--r--src/electron/ipc-api/sessionStorage.ts6
1 files changed, 5 insertions, 1 deletions
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
7function deduceSession(serviceId: string | undefined | null): Session { 7function 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}