Skip to content

Commit ca19e10

Browse files
committed
Require Electron 4
1 parent abffec0 commit ca19e10

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class ElectronStore extends Conf {
77
constructor(options) {
88
const defaultCwd = (electron.app || electron.remote.app).getPath('userData');
99

10-
opts = Object.assign({name: 'config'}, opts);
10+
options = {
11+
name: 'config',
12+
...options
13+
};
1114

1215
if (options.cwd) {
1316
options.cwd = path.isAbsolute(options.cwd) ? options.cwd : path.join(defaultCwd, options.cwd);

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can use this module directly in both the main and renderer process.
1313
$ npm install electron-store
1414
```
1515

16-
*Requires Electron 2.0.0 or later.*
16+
*Requires Electron 4 or later.*
1717

1818
<a href="https://www.patreon.com/sindresorhus">
1919
<img src="https://c5.patreon.com/external/logo/[email protected]" width="160">

0 commit comments

Comments
 (0)