From 80d85c0e8ec6675052a945d490c3b2b763316c0c Mon Sep 17 00:00:00 2001 From: Kishanjay Date: Tue, 12 Dec 2023 20:36:34 +0100 Subject: [PATCH] fix: incorrectly mapped toggleDevTools in custom menu fiddle (#40703) --- docs/fiddles/menus/customize-menus/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fiddles/menus/customize-menus/main.js b/docs/fiddles/menus/customize-menus/main.js index a93293afde..e020c3c34c 100644 --- a/docs/fiddles/menus/customize-menus/main.js +++ b/docs/fiddles/menus/customize-menus/main.js @@ -102,7 +102,7 @@ const template = [ })(), click: (item, focusedWindow) => { if (focusedWindow) { - focusedWindow.toggleDevTools() + focusedWindow.webContents.toggleDevTools() } } },