Skip to content

Commit

Permalink
update prevention condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 18, 2022
1 parent e21452b commit 72ba62b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scriptlets/trusted-replace-xhr-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ export function trustedReplaceXhrResponse(source, pattern, replacement, propsToM
};

const sendWrapper = (target, thisArg, args) => {
if (!shouldReplace
|| !pattern
|| (!replacement && replacement !== '')
) {
if (!shouldReplace) {
return Reflect.apply(target, thisArg, args);
}

Expand Down

0 comments on commit 72ba62b

Please sign in to comment.