Previously, I utilized the code below to retrieve the current window from the renderer
:
import {remote, BrowserWindow} from 'electron';
export function getCurrentWindow(): BrowserWindow {
return remote.getCurrentWindow();
}
With electron 14 eliminating the remote
module, what is now the preferred method to achieve this task?