File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ class ElectronStore extends Conf {
7
7
constructor ( options ) {
8
8
const defaultCwd = ( electron . app || electron . remote . app ) . getPath ( 'userData' ) ;
9
9
10
- opts = Object . assign ( { name : 'config' } , opts ) ;
10
+ options = {
11
+ name : 'config' ,
12
+ ...options
13
+ } ;
11
14
12
15
if ( options . cwd ) {
13
16
options . cwd = path . isAbsolute ( options . cwd ) ? options . cwd : path . join ( defaultCwd , options . cwd ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ You can use this module directly in both the main and renderer process.
13
13
$ npm install electron-store
14
14
```
15
15
16
- * Requires Electron 2.0.0 or later.*
16
+ * Requires Electron 4 or later.*
17
17
18
18
<a href =" https://www.patreon.com/sindresorhus " >
19
19
<img src="https://c5.patreon.com/external/logo/[email protected] " width="160">
You can’t perform that action at this time.
0 commit comments