Skip to content

Commit

Permalink
Fix "Inspect Element" not working in BrowserView (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra authored Dec 3, 2022
1 parent 503c4aa commit cc69dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const create = (win, options) => {
id: 'inspect',
label: 'I&nspect Element',
click() {
win.inspectElement(props.x, props.y);
webContents(win).inspectElement(props.x, props.y);

if (webContents(win).isDevToolsOpened()) {
webContents(win).devToolsWebContents.focus();
Expand Down

0 comments on commit cc69dea

Please sign in to comment.