2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-11 07:41:04 +00:00

Use event dom-ready just like example in docs http://electron.atom.io/docs/v0.36.4/api/web-view-tag/

This commit is contained in:
Jia Hao 2016-01-19 18:21:14 +08:00
parent 53383ebae7
commit b5ed2277bd

View File

@ -17,7 +17,7 @@ ipc.on('params', function(event, message) {
webView.setAttribute('minheight', '100'); webView.setAttribute('minheight', '100');
if (appArgs.userAgent) { if (appArgs.userAgent) {
webView.addEventListener('did-start-loading', function() { webView.addEventListener('dom-ready', function() {
webView.setUserAgent(appArgs.userAgent); webView.setUserAgent(appArgs.userAgent);
}); });
} }