Skip to content

Commit fc0e200

Browse files
committed
sync menu.popup signature to breaking change in Electron 2.0
1 parent ea70664 commit fc0e200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-smoke/electron/test/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ menu.insert(0, menuItem);
568568
console.log(menu.items);
569569

570570
const pos = screen.getCursorScreenPoint();
571-
menu.popup(null, {x: pos.x, y: pos.y});
571+
menu.popup({x: pos.x, y: pos.y});
572572

573573
// main.js
574574
const template = <Electron.MenuItemConstructorOptions[]> [

0 commit comments

Comments
 (0)