Skip to content

Commit

Permalink
Improve xml-prune scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 3, 2024
1 parent 91125d2 commit c8307f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3347,6 +3347,9 @@ function xmlPrune(
const serializer = new XMLSerializer();
const textout = serializer.serializeToString(thisArg.responseXML);
Object.defineProperty(thisArg, 'responseText', { value: textout });
if ( typeof thisArg.response === 'string' ) {
Object.defineProperty(thisArg, 'response', { value: textout });
}
return;
}
if (
Expand Down

0 comments on commit c8307f5

Please sign in to comment.