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

showInspectElement set to true - showing as disabled in 0.12.0 #86

Closed
jennifer-shehane opened this issue Oct 30, 2019 · 2 comments
Closed

Comments

@jennifer-shehane
Copy link

Our applications calls into electron-context-menu in order to show 1 Inspect Element menu. Simplified it is doing this (coffeescript):

contextMenu = require("electron-context-menu")

contextMenu({
  showInspectElement: true
  window: win
})

The complete code in our project is here: https://github.com/cypress-io/cypress/blob/renovate/electron-context-menu-0.x/packages/server/lib/gui/windows.coffee#L150

This menu is working in version 0.11.0 of electron-context-menu, but showing up as disabled in version 0.12.0.

0.11.0

Screen Shot 2019-10-30 at 4 29 58 PM

0.12.0

Screen Shot 2019-10-30 at 4 04 57 PM

We waited until now to update because of the breaking change for Electron - we recently updated to use Electron 5.0.10.

Forgive me if I missed something in the changelog that we were meant to update.

@sindresorhus
Copy link
Owner

@jennifer-shehane
Copy link
Author

Thanks! This did resolve our issue.

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