docs: warning unicity of webRequest event listener (#13482)
This commit is contained in:
parent
4bcf0e34c5
commit
2bba11c5b0
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,9 @@ property of a `Session`.
|
|||
|
||||
The methods of `WebRequest` accept an optional `filter` and a `listener`. The
|
||||
`listener` will be called with `listener(details)` when the API's event has
|
||||
happened. The `details` object describes the request. Passing `null`
|
||||
as `listener` will unsubscribe from the event.
|
||||
happened. The `details` object describes the request.
|
||||
|
||||
⚠️ Only the last attached `listener` will be used. Passing `null` as `listener` will unsubscribe from the event.
|
||||
|
||||
The `filter` object has a `urls` property which is an Array of URL
|
||||
patterns that will be used to filter out the requests that do not match the URL
|
||||
|
|
Loading…
Reference in a new issue