Fix clear storage not working
It failed because it went looking for the focused / first window to clear the storage on, but we called it before we had a window. Just rewrite it without electron-clear-storage which doesn't really seem necessary as a dependency, and also relaunched the app when clearing stprage (you-had-one-job.gif). Pass the session in explicitly so it's clear it needs it.
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/electron": "^6.0.0",
|
||||
"@standardnotes/electron-clear-data": "^1.0.5",
|
||||
"auto-launch": "^5.0.5",
|
||||
"counterpart": "^0.18.6",
|
||||
"electron-store": "^10.0.0",
|
||||
|
||||
Reference in New Issue
Block a user