mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix spoof-css for Firefox
This commit is contained in:
parent
005a0fe95d
commit
796ebc2444
1 changed files with 5 additions and 0 deletions
|
@ -2261,6 +2261,11 @@ function spoofCSS(
|
|||
const proxiedStyle = new Proxy(style, {
|
||||
get(target, prop, receiver) {
|
||||
if ( typeof target[prop] === 'function' ) {
|
||||
if ( prop === 'getPropertyValue' ) {
|
||||
return (function(prop) {
|
||||
return spoofStyle(prop, target[prop]);
|
||||
}).bind(target);
|
||||
}
|
||||
return target[prop].bind(target);
|
||||
}
|
||||
return spoofStyle(prop, Reflect.get(target, prop, receiver));
|
||||
|
|
Loading…
Reference in a new issue