fix: context menu

Breaking change in Electron 2.0
https://github.com/electron/electron/pull/11968
This commit is contained in:
Thomas Zarebczan 2018-08-10 00:21:02 -04:00
parent f62181dbd6
commit 172f5d43fa

View file

@ -59,7 +59,7 @@ export function openContextMenu(event, templates = [], canEdit = false, selectio
} }
injectDevelopmentTemplate(event, templates); 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 // This function is used for the markdown description on the publish page