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

Installation not working #29

Closed
zackshapiro opened this issue Jan 26, 2017 · 8 comments
Closed

Installation not working #29

zackshapiro opened this issue Jan 26, 2017 · 8 comments

Comments

@zackshapiro
Copy link

After running npm install --save electron-context-menu and adding

require('electron-context-menu')({
    prepend: [{}],
    showInspectElement: true,
});

I've tried a variety of configurations, nothing seems to add Inspect Element to my rightclick menu, which I don't have. I tried looking into the source and have come up empty so I'd love advice on how to get this working.

Thanks!

@sindresorhus
Copy link
Owner

Maybe related to sindresorhus/electron-is-dev#4?

@benjaminsuch
Copy link

Try changing prepend: [{}] to prepend: (params, browserWindow) => []

@zackshapiro
Copy link
Author

@benjaminsuch no luck, unfortunately

@sindresorhus
Copy link
Owner

Maybe related to sindresorhus/electron-is-dev#4?

@zackshapiro Regarding ⬆️, do you have electron in your projects filepath?

@zackshapiro
Copy link
Author

I do not, no

@sindresorhus
Copy link
Owner

Try doing some debugging. Last thing I could think of, try removing this line:

menuTpl = delUnusedElements(menuTpl);

@zackshapiro
Copy link
Author

zackshapiro commented Feb 27, 2017 via email

@zackshapiro
Copy link
Author

I'd love help getting this work. It's so simple, I can't imagine what I'm doing wrong. Thanks

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

3 participants