2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Merge pull request #202 from lexelby/fix-slowdown

Fix deteriorated responsiveness #191 and polluted console #172
This commit is contained in:
Jia Hao 2016-05-08 14:26:40 +08:00
commit 9f3dfdc315

View File

@ -125,7 +125,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
mainWindow.webContents.setUserAgent(options.userAgent);
}
mainWindow.webContents.on('did-get-response-details', () => {
mainWindow.webContents.on('did-finish-load', () => {
mainWindow.webContents.send('params', JSON.stringify(options));
mainWindow.webContents.insertCSS(getCssToInject());
});