From 8ff8421a8355929be4ce383591f8f6bc1194e1cf Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Tue, 16 May 2023 13:34:36 +0300 Subject: [PATCH] add todo for array destructuring --- src/scriptlets/prevent-xhr.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scriptlets/prevent-xhr.js b/src/scriptlets/prevent-xhr.js index c11928bf0..a14e0a290 100644 --- a/src/scriptlets/prevent-xhr.js +++ b/src/scriptlets/prevent-xhr.js @@ -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.