URL failed


#1

How can I test if loadURL() failed or succeeded ?

I try to add

mainWin.webContents.on('did-fail-load', function() {
  console.log('>>>>>>>>>>>>>>>>>>>page failed');
});

But it never occurs on wrong URL.

Thanks…


#2

did-fail-load is only emitted on these errors from chromium. You’re url might be getting some other error.


#3

Thanks for the alias to the source code Jeeper.:grinning: