I created a electron app. When the app starts, a login window opens with transparent background. I want that when user logged in successfully. Window's transparent property should be disabled. I didn't find any method like win.tranparent(false). How can I disable the transparent background.
What I tried.
ipcMain.on('load-home-page', () => {
const win = BrowserWindow.getAllWindows()[0];
win.transparent(false);
win.maximize();
win.loadURL = path.join(__dirname, '../renderers/pages/index.html');
win.show();
});