Merge pull request #5409 from electron/did-fail-load-clarification
Clarify how did-fail-load handles redirects
This commit is contained in:
commit
4ce26dfa68
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ Returns:
|
||||||
This event is like `did-finish-load` but emitted when the load failed or was
|
This event is like `did-finish-load` but emitted when the load failed or was
|
||||||
cancelled, e.g. `window.stop()` is invoked.
|
cancelled, e.g. `window.stop()` is invoked.
|
||||||
The full list of error codes and their meaning is available [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
|
The full list of error codes and their meaning is available [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
|
||||||
|
Note that redirect responses will emit `errorCode` -3; you may want to ignore
|
||||||
|
that error explicitly.
|
||||||
|
|
||||||
### Event: 'did-frame-finish-load'
|
### Event: 'did-frame-finish-load'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue