mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 23:42:39 +01: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
@ -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 New Issue
Block a user