In Electron Forge when I embed gmail and set nodeIntegrationInWorker: true
I get a blank screen for Gmail. How do I fix this?
const createWindow = () => {
const mainWindow = new BrowserWindow({
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegrationInWorker: true,
contextIsolation: true
},
});
mainWindow.loadURL("https://gmail.com")
};
I am using nodeIntegrationInWorker: true
to manipulate the CSS of a site that requires gmail authentication. Without it, I can execute preload.js
EDIT
Reading about preload, it looks like I am using it incorrectly.
My goal is to create an app that manipulates the CSS of a website that uses gmail for authentication and to have the app persist those changes. I am writing dom manipulating JS in the preload.js file.