Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jellizaveta committed Oct 9, 2024
1 parent 0609abc commit 959076c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scriptlets/prevent-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 959076c

Please sign in to comment.