mirror of https://github.com/gorhill/uBlock.git
update fix for #3507: look even farther for charset
This commit is contained in:
parent
f484461d2e
commit
aadcfcdaf3
|
@ -745,7 +745,7 @@ var filterDocument = (function() {
|
|||
utf8TextDecoder = new TextDecoder();
|
||||
}
|
||||
doc = domParser.parseFromString(
|
||||
utf8TextDecoder.decode(filterer.buffer.slice(0, 2048)),
|
||||
utf8TextDecoder.decode(filterer.buffer.slice(0, 4096)),
|
||||
'text/html'
|
||||
);
|
||||
filterer.charset = µb.textEncode.normalizeCharset(charsetFromDoc(doc));
|
||||
|
|
Loading…
Reference in New Issue