fix: incorrectly mapped toggleDevTools in custom menu fiddle (#40703)

This commit is contained in:
Kishanjay 2023-12-12 20:36:34 +01:00 committed by GitHub
parent 66b2f697ea
commit 80d85c0e8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ const template = [
})(),
click: (item, focusedWindow) => {
if (focusedWindow) {
focusedWindow.toggleDevTools()
focusedWindow.webContents.toggleDevTools()
}
}
},