Skip to content

Commit

Permalink
Require Electron 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 2, 2021
1 parent 004d476 commit 1828b8e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
3 changes: 1 addition & 2 deletions index.d.ts
@@ -1,4 +1,3 @@
/// <reference lib="dom"/>
import {
BrowserWindow,
BrowserView,
Expand Down Expand Up @@ -317,6 +316,6 @@ dispose();
```
*/
declare function contextMenu(options?: contextMenu.Options): () => void;
declare function contextMenu(options?: contextMenu.Options): () => void; // eslint-disable-line no-redeclare

export = contextMenu;
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -310,7 +310,7 @@ const create = (win, options) => {

module.exports = (options = {}) => {
if (process.type === 'renderer') {
throw new Error('Cannot use electron-context-menu in renderer process!');
throw new Error('Cannot use electron-context-menu in the renderer process!');
}

let isDisposed = false;
Expand Down
18 changes: 13 additions & 5 deletions package.json
Expand Up @@ -41,20 +41,28 @@
],
"dependencies": {
"cli-truncate": "^2.1.0",
"electron-dl": "^3.1.0",
"electron-is-dev": "^1.2.0"
"electron-dl": "^3.2.1",
"electron-is-dev": "^2.0.0"
},
"devDependencies": {
"@types/node": "^14.14.31",
"@types/node": "^15.0.1",
"ava": "^2.4.0",
"electron": "^12.0.0",
"electron": "^12.0.6",
"tsd": "^0.14.0",
"xo": "^0.38.1"
"xo": "^0.39.1"
},
"xo": {
"envs": [
"node",
"browser"
]
},
"tsd": {
"compilerOptions": {
"lib": [
"es2019",
"dom"
]
}
}
}
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -14,7 +14,7 @@ This package can only be used in the main process.
$ npm install electron-context-menu
```

*Requires Electron 8 or later.*
*Requires Electron 10 or later.*

## Usage

Expand Down

0 comments on commit 1828b8e

Please sign in to comment.