diff options
author | 2019-10-02 09:54:51 +0200 | |
---|---|---|
committer | 2019-10-02 09:54:51 +0200 | |
commit | 8428b4ee25e2e200cd220d483db52e6b7ad1c7fb (patch) | |
tree | 42bfb2b1d66b092397aed73f068858fab0e30613 /src/api | |
parent | Merge branch 'feature/custom-website-enhancement' into release/5.4.0 (diff) | |
download | ferdium-app-8428b4ee25e2e200cd220d483db52e6b7ad1c7fb.tar.gz ferdium-app-8428b4ee25e2e200cd220d483db52e6b7ad1c7fb.tar.zst ferdium-app-8428b4ee25e2e200cd220d483db52e6b7ad1c7fb.zip |
Update clear cache to electron promise APIs
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/LocalApi.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/server/LocalApi.js b/src/api/server/LocalApi.js index ab1604a27..383f38b16 100644 --- a/src/api/server/LocalApi.js +++ b/src/api/server/LocalApi.js | |||
@@ -45,13 +45,13 @@ export default class LocalApi { | |||
45 | const s = session.fromPartition(`persist:service-${serviceId}`); | 45 | const s = session.fromPartition(`persist:service-${serviceId}`); |
46 | 46 | ||
47 | debug('LocalApi::clearCache resolves', serviceId); | 47 | debug('LocalApi::clearCache resolves', serviceId); |
48 | return new Promise(resolve => s.clearCache(resolve)); | 48 | return s.clearCache(); |
49 | } | 49 | } |
50 | 50 | ||
51 | async clearAppCache() { | 51 | async clearAppCache() { |
52 | const s = session.defaultSession; | 52 | const s = session.defaultSession; |
53 | 53 | ||
54 | debug('LocalApi::clearCache clearAppCache'); | 54 | debug('LocalApi::clearCache clearAppCache'); |
55 | return new Promise(resolve => s.clearCache(resolve)); | 55 | return s.clearCache(); |
56 | } | 56 | } |
57 | } | 57 | } |