It looks like menu.popup() defaults to the currently focused BrowserWindow now, so there is no need to specify it with remote.getCurrentWindow(). This change also workarounds an issue where remote.getCurrentWindow() may return null in some environments, resulting in a popup to not appear as expected.
It looks like
menu.popup()
defaults to the currently focused BrowserWindow now, so there is no need to specify it with remote.getCurrentWindow(). This change also workarounds an issue whereremote.getCurrentWindow()
may return null in some environments, resulting in a popup to not appear as expected.