From 959076ce7568d50d1b72f8dd579606f4e194b60e Mon Sep 17 00:00:00 2001 From: jellizaveta Date: Wed, 9 Oct 2024 12:06:35 +0300 Subject: [PATCH] update comments --- src/scriptlets/prevent-xhr.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scriptlets/prevent-xhr.js b/src/scriptlets/prevent-xhr.js index 04f6605e..33e26bf4 100644 --- a/src/scriptlets/prevent-xhr.js +++ b/src/scriptlets/prevent-xhr.js @@ -187,10 +187,11 @@ export function preventXHR(source, propsToMatch, customResponseText) { * By using Object.defineProperty, the function ensures * that the readyState can be modified and configured appropriately, * while allowing the property to be writable. + * @param {number} readyState - request status number. */ - const transitionReadyState = (state) => { + const transitionReadyState = (readyState) => { Object.defineProperty(thisArg, 'readyState', { - value: state, + value: readyState, writable: true, configurable: true, });