Skip to content

Commit c1fc491

Browse files
simonhampgithub-actions[bot]
authored andcommitted
Build plugin
1 parent 0e1cb65 commit c1fc491

File tree

1 file changed

+4
-0
lines changed
  • resources/js/electron-plugin/dist/preload

1 file changed

+4
-0
lines changed

‎resources/js/electron-plugin/dist/preload/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ const Native = {
99
return callback(data.payload, event);
1010
}
1111
});
12+
},
13+
contextMenu: (template) => {
14+
let menu = remote.Menu.buildFromTemplate(template);
15+
menu.popup({ window: remote.getCurrentWindow() });
1216
}
1317
};
1418
window.Native = Native;

0 commit comments

Comments
 (0)