Skip to content

Commit cc69dea

Browse files
authored
Fix "Inspect Element" not working in BrowserView (#167)
1 parent 503c4aa commit cc69dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const create = (win, options) => {
222222
id: 'inspect',
223223
label: 'I&nspect Element',
224224
click() {
225-
win.inspectElement(props.x, props.y);
225+
webContents(win).inspectElement(props.x, props.y);
226226

227227
if (webContents(win).isDevToolsOpened()) {
228228
webContents(win).devToolsWebContents.focus();

0 commit comments

Comments
 (0)