Skip to content

Commit

Permalink
Require Electron 7 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 17, 2020
1 parent b29a67e commit a066c03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -24,6 +24,7 @@ class ElectronStore extends Conf {
}

openInEditor() {
// TODO: Remove `electron.shell.openItem` when targeting Electron 9.`
const open = electron.shell.openItem || electron.shell.openPath;
open(this.path);
}
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Expand Up @@ -44,7 +44,7 @@ const typedStore = new Store<TypedStore>({
});

// TODO: This should not be `| undefined`.
expectType<number>(typedStore.get('interval'));
expectType<number | undefined>(typedStore.get('interval'));

const isEnabled = false;
typedStore.set('isEnabled', isEnabled);
Expand Down
4 changes: 2 additions & 2 deletions readme.md
@@ -1,4 +1,4 @@
# electron-store [![Build Status](https://travis-ci.org/sindresorhus/electron-store.svg?branch=master)](https://travis-ci.org/sindresorhus/electron-store)
# electron-store [![Build Status](https://travis-ci.com/sindresorhus/electron-store.svg?branch=master)](https://travis-ci.com/github/sindresorhus/electron-store)

> Simple data persistence for your [Electron](https://electronjs.org) app or module - Save and load user preferences, app state, cache, etc
Expand All @@ -12,7 +12,7 @@ You can use this module directly in both the main and renderer process.
$ npm install electron-store
```

*Requires Electron 5 or later.*
*Requires Electron 7 or later.*

## Usage

Expand Down

0 comments on commit a066c03

Please sign in to comment.