Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can only see Inspect Element option #27

Closed
alisiddiq opened this issue Jan 18, 2017 · 1 comment
Closed

I can only see Inspect Element option #27

alisiddiq opened this issue Jan 18, 2017 · 1 comment

Comments

@alisiddiq
Copy link

alisiddiq commented Jan 18, 2017

I have tried using this at the start of my main.js:

require('electron-context-menu')({
prepend: (params, browserWindow) => [{}]
});

I can only get the inspect Element menu and cannot figure out what extra things I need to do to add more options like Reload page to the context menu. Please help.

@sindresorhus
Copy link
Owner

It's documented right in the Usage section how to add a custom element: https://github.com/sindresorhus/electron-context-menu#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants