From 172f5d43fa182795594c4ce4aaf830cbc8ad741a Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 10 Aug 2018 00:21:02 -0400 Subject: [PATCH] fix: context menu Breaking change in Electron 2.0 https://github.com/electron/electron/pull/11968 --- src/renderer/util/contextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/util/contextMenu.js b/src/renderer/util/contextMenu.js index 8a0c5d089..31125f549 100644 --- a/src/renderer/util/contextMenu.js +++ b/src/renderer/util/contextMenu.js @@ -59,7 +59,7 @@ export function openContextMenu(event, templates = [], canEdit = false, selectio } injectDevelopmentTemplate(event, templates); - remote.Menu.buildFromTemplate(templates).popup(); + remote.Menu.buildFromTemplate(templates).popup({}); } // This function is used for the markdown description on the publish page