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:
parent
53383ebae7
commit
b5ed2277bd
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user