Releases: reZach/secure-electron-store
Releases · reZach/secure-electron-store
v4.0.2
v4.0.1
v4.0.0
Changes
- You need to use
.sanitizePath
in order to use secure-electron-store v4+ in versions of Electron 14+. The documentation has been updated to reflect what is needed. This is a breaking change because.sanitizePath
replaces any\
with||
. (additionalArguments in versions of Electron v14+ no longer work if you pass in a\
character in them.
before
/* create BrowserWindow here */
additionalArguments: [`storePath:${app.getPath("userData")}`],
now
const store = new Store({
path: app.getPath("userData")
});
/* create BrowserWindow here */
additionalArguments: [`--storePath=${store.sanitizePath(app.getPath("userData"))}`],