diff options
author | 2021-09-26 11:14:23 +0530 | |
---|---|---|
committer | 2021-09-26 11:14:23 +0530 | |
commit | 35b31dd0872ed81da7f004138e40b68a4b7e6b51 (patch) | |
tree | 6cfcd87ff4f19a1338134977859e3e2d80510084 /src/webview/sessionHandler.ts | |
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/webview/sessionHandler.ts')
-rw-r--r-- | src/webview/sessionHandler.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/webview/sessionHandler.ts b/src/webview/sessionHandler.ts index 4961da12b..0c6d23f23 100644 --- a/src/webview/sessionHandler.ts +++ b/src/webview/sessionHandler.ts | |||
@@ -1,19 +1,6 @@ | |||
1 | import { getCurrentWebContents } from '@electron/remote'; | ||
2 | |||
3 | const debug = require('debug')('Ferdi:Plugin:SessionHandler'); | 1 | const debug = require('debug')('Ferdi:Plugin:SessionHandler'); |
4 | 2 | ||
5 | export class SessionHandler { | 3 | export class SessionHandler { |
6 | clearStorageData(storageLocations: string[]) { | ||
7 | try { | ||
8 | debug('Clearing storageLocations:', storageLocations); | ||
9 | const { session } = getCurrentWebContents(); | ||
10 | session.flushStorageData(); | ||
11 | session.clearStorageData({ storages: storageLocations }); | ||
12 | } catch (error) { | ||
13 | debug(error); | ||
14 | } | ||
15 | } | ||
16 | |||
17 | async releaseServiceWorkers() { | 4 | async releaseServiceWorkers() { |
18 | try { | 5 | try { |
19 | const registrations = | 6 | const registrations = |