Renderer Process
Access remote
const { dialog } = require('electron').remote
console.log(dialog);
Make file that works in both
const electron = require("electron");
const dialog = electron.dialog || electron.remote.dialog; //ensure works in both main and renderer
Last updated