mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve xml-prune scriptlet
Related feedback: https://github.com/uBlockOrigin/uAssets/issues/25164#issuecomment-2326358453
This commit is contained in:
parent
91125d29cf
commit
c8307f58a3
1 changed files with 3 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue