mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 02:42:41 +01:00
Fix last commit re. set-constant scriptlet
Related commit: - https://github.com/gorhill/uBlock/commit/40ea9d69d5d0 Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/947 Restore intended behavior with original commit: - https://github.com/gorhill/uBlock/commit/14ebfbea279c The purpose of the original change was to be able to trap properties which values were `null`.
This commit is contained in:
parent
a9688cd670
commit
85cf8f5807
@ -549,7 +549,10 @@
|
||||
const prop = chain.slice(0, pos);
|
||||
let v = owner[prop];
|
||||
chain = chain.slice(pos + 1);
|
||||
if ( v instanceof Object || typeof v === 'object' ) {
|
||||
if (
|
||||
(v instanceof Object) ||
|
||||
(typeof v === 'object' && v !== null)
|
||||
) {
|
||||
makeProxy(v, chain);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user