From 35e90f742b8a2f1006157da2a9f394cd055aff74 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 20 Feb 2018 11:18:57 -0600 Subject: [PATCH] fix menu.popup() sample code --- docs/api/menu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 51b1fa166fc8..9f9127a42c67 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -259,7 +259,7 @@ menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true})) window.addEventListener('contextmenu', (e) => { e.preventDefault() - menu.popup(remote.getCurrentWindow()) + menu.popup({window: remote.getCurrentWindow()}) }, false) ```