mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: incorrectly mapped toggleDevTools in custom menu fiddle (#40703)
This commit is contained in:
@@ -102,7 +102,7 @@ const template = [
|
||||
})(),
|
||||
click: (item, focusedWindow) => {
|
||||
if (focusedWindow) {
|
||||
focusedWindow.toggleDevTools()
|
||||
focusedWindow.webContents.toggleDevTools()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user