I am running an electron app, where in its renderer process I use HTML5 localStorage.
I'm interested to know where in my file-system is this localStorage actually stored (I believe it is in SQLite format).
I saw the answer for where is a browser localStorage stored, here:
Where the sessionStorage and localStorage stored?
I'm asking this because I would like to be able to run 2 instances of this electron application, so that each application will have different settings in which I save in localStorage.
Specifically I'm most interested in windows 10, but an answer wrapping all OS will be great.
相关问题
- How can I get a window object from new BrowserWind
- Failed at the electron@1.8.2 postinstall script
- No member named ForceSet
- Export HTMLtable to CSV in electron
- Using electron-usb with electron
相关文章
- Configuring electron-webpack renderer to work with
- localStorage data persistence
- PhoneGap iOS 7 and localStorage
- Error messages and console logs in Electron?
- Where is google chrome local storage saved?
- Access web storage from server side - possible?
- Deleting localStorage data
- Does html5 local storage store per iframe?
It's stored in the AppData folder, which you can find by looking at the value of
require('app').getPath('userData')
.This means the data persists even if the app is deleted. If you're running two instances, you'll need to find some way of distinguishing between them so they don't trample on each other's data.