diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2021-09-26 11:14:23 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 11:14:23 +0530 |
commit | 35b31dd0872ed81da7f004138e40b68a4b7e6b51 (patch) | |
tree | 6cfcd87ff4f19a1338134977859e3e2d80510084 /src/stores | |
parent | chore: tag the 'recipes' submodule when tagging the main repo - to help ident... (diff) | |
download | ferdium-app-35b31dd0872ed81da7f004138e40b68a4b7e6b51.tar.gz ferdium-app-35b31dd0872ed81da7f004138e40b68a4b7e6b51.tar.zst ferdium-app-35b31dd0872ed81da7f004138e40b68a4b7e6b51.zip |
refactor: remove references to 'electron/remote' - part deux (#1987)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 2 | ||||
-rw-r--r-- | src/stores/UserStore.js | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 85f74a91e..cb17447c0 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -258,7 +258,7 @@ export default class AppStore extends Store { | |||
258 | body: 'Have a wonderful day & happy messaging.', | 258 | body: 'Have a wonderful day & happy messaging.', |
259 | }); | 259 | }); |
260 | 260 | ||
261 | localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, true); | 261 | localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, 'true'); |
262 | } | 262 | } |
263 | } | 263 | } |
264 | 264 | ||
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index e3d57c662..77dd28d7c 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -2,13 +2,13 @@ import { observable, computed, action } from 'mobx'; | |||
2 | import moment from 'moment'; | 2 | import moment from 'moment'; |
3 | import jwt from 'jsonwebtoken'; | 3 | import jwt from 'jsonwebtoken'; |
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { session } from '@electron/remote'; | 5 | import { ipcRenderer } from 'electron'; |
6 | 6 | ||
7 | import { TODOS_PARTITION_ID } from '../config'; | ||
7 | import { isDevMode } from '../environment'; | 8 | import { isDevMode } from '../environment'; |
8 | import Store from './lib/Store'; | 9 | import Store from './lib/Store'; |
9 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
10 | import CachedRequest from './lib/CachedRequest'; | 11 | import CachedRequest from './lib/CachedRequest'; |
11 | import { TODOS_PARTITION_ID } from '../config'; | ||
12 | 12 | ||
13 | const debug = require('debug')('Ferdi:UserStore'); | 13 | const debug = require('debug')('Ferdi:UserStore'); |
14 | 14 | ||
@@ -256,8 +256,7 @@ export default class UserStore extends Store { | |||
256 | this.stores.services.allServicesRequest.invalidate().reset(); | 256 | this.stores.services.allServicesRequest.invalidate().reset(); |
257 | 257 | ||
258 | if (this.stores.todos.isTodosEnabled) { | 258 | if (this.stores.todos.isTodosEnabled) { |
259 | const sess = session.fromPartition(TODOS_PARTITION_ID); | 259 | ipcRenderer.send('clear-storage-data', { sessionId: TODOS_PARTITION_ID }); |
260 | sess.clearStorageData(); | ||
261 | } | 260 | } |
262 | } | 261 | } |
263 | 262 | ||