Skip to content

Commit

Permalink
add todo for array destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 16, 2023
1 parent 7762018 commit 8ff8421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scriptlets/prevent-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ export function preventXHR(source, propsToMatch, customResponseText) {
}
const allHeadersStr = thisArg.collectedHeaders
.map((header) => {
/**
* TODO: array destructuring may be used here
* after the typescript implementation and bundling refactoring
* as now there is an error: slicedToArray is not defined
*/
const headerName = header[0];
const headerValue = header[1];
// In modern browsers, the header names are returned in all lower case, as per the latest spec.
Expand Down

0 comments on commit 8ff8421

Please sign in to comment.