Skip to content

Conversation

yocontra
Copy link
Contributor

@yocontra yocontra commented Dec 1, 2022

Previously this would throw and crash the process:

TypeError: win.inspectElement is not a function
    at click (/Users/contra/Projects/canopy-app/.webpack/main/index.js:19079:10)
    at MenuItem.click (node:electron/js2c/browser_init:73:1906)
    at a._executeCommand (node:electron/js2c/browser_init:81:2453)

This change makes it work, since inspectElement is on the webContents in a BrowserView

@sindresorhus sindresorhus merged commit cc69dea into sindresorhus:main Dec 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants