Skip to content

Commit

Permalink
Changed the way storage data is cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Nov 16, 2020
1 parent 823429c commit 01497e3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
Binary file removed electron/dist/electron/assets/images/Leapp.icns
Binary file not shown.
Binary file removed electron/dist/electron/assets/images/Leapp.ico
Binary file not shown.
Binary file removed electron/dist/electron/assets/images/Leapp.png
Binary file not shown.
34 changes: 18 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,11 @@
"electron-updater": "~4.3.1",
"extract-zip": "~1.7.0",
"fix-path": "~3.0.0",
"follow-redirects": "1.13.0",
"fs-extra": "~8.1.0",
"global-tunnel": "~1.2.0",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.4",
"ini": "~1.3.5",
"jwt-decode": "~2.2.0",
"keytar": "~6.0.1",
Expand Down
7 changes: 4 additions & 3 deletions src/app/services-system/configuration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ export class ConfigurationService extends NativeService {
/**
* Create a new configuration file synchronously
*/
public newConfigurationFileSync() {
public async newConfigurationFileSync() {
try {
// Cleaning Library Electron Cache
// Get app directory
// on OSX it's /Users/Yourname/Library/Application Support/AppName
const getAppPath = this.path.join(this.app.getPath('appData'), `Leapp`);
this.rimraf.sync(getAppPath);
// const getAppPath = this.path.join(this.app.getPath('appData'), `Leapp`);
// this.rimraf.sync(getAppPath);
await this.session.defaultSession.clearStorageData();

// Clean localStorage
localStorage.clear();
Expand Down

0 comments on commit 01497e3

Please sign in to comment.