mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-10 15:21:03 +00:00
Fix FOUC with inject CSS files
This commit is contained in:
parent
aeddcea4cb
commit
eeb661b6cd
@ -113,7 +113,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
||||
mainWindow.webContents.setUserAgent(options.userAgent);
|
||||
}
|
||||
|
||||
mainWindow.webContents.on('did-finish-load', () => {
|
||||
mainWindow.webContents.on('did-get-response-details', () => {
|
||||
mainWindow.webContents.send('params', JSON.stringify(options));
|
||||
mainWindow.webContents.insertCSS(getCssToInject());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user