mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve prevent-innerHTML scriptlet
Related issue: https://github.com/uBlockOrigin/uAssets/issues/29148
This commit is contained in:
parent
2809b6cd18
commit
b0396029bd
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ export function preventInnerHTML(
|
|||
if ( typeof elem.matches !== 'function' ) { return false; }
|
||||
if ( elem.matches(selector) === false ) { return false; }
|
||||
}
|
||||
return safe.testPattern(matcher, a);
|
||||
return safe.testPattern(matcher, `${a}`);
|
||||
};
|
||||
Object.defineProperty(Element.prototype, 'innerHTML', {
|
||||
get: function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue