Skip to content

Commit

Permalink
Feedback from Rob
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Wu <[email protected]>
  • Loading branch information
rebloor and Rob--W authored Oct 27, 2023
1 parent af95fd5 commit 81f90fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ browser-compat: webextensions.api.webRequest.StreamFilter.ondata

{{AddonSidebar()}}

An event handler called repeatedly when response data is available. The handler is passed an [`event` interface object](/en-US/docs/web/api/event). However, the only reliable content in that object is the `data` property, which includes a chunk of the response data as an {{jsxref("ArrayBuffer")}}.
An event handler called repeatedly when response data is available. The handler is passed an [`Event` object](/en-US/docs/web/api/event) with a `data` property, which includes a chunk of the response data as an {{jsxref("ArrayBuffer")}}.

To decode the data, use either {{domxref("TextDecoder")}} or {{domxref("Blob")}}.

Expand Down

0 comments on commit 81f90fa

Please sign in to comment.