docs: warning unicity of webRequest event listener (#13482)

This commit is contained in:
Alexandre Lacheze 2018-07-30 01:38:59 +00:00 committed by Samuel Attard
parent 4bcf0e34c5
commit 2bba11c5b0

View file

@ -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