mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fine tune nowoif scriptlet
This commit is contained in:
parent
f4bdee668c
commit
b33065e198
1 changed files with 1 additions and 0 deletions
|
|
@ -80,6 +80,7 @@
|
||||||
const decoy1 = createDecoy('iframe', 'src', url);
|
const decoy1 = createDecoy('iframe', 'src', url);
|
||||||
const decoy2 = createDecoy('object', 'data', url);
|
const decoy2 = createDecoy('object', 'data', url);
|
||||||
const popup = decoy1.contentWindow || decoy2.contentWindow;
|
const popup = decoy1.contentWindow || decoy2.contentWindow;
|
||||||
|
Object.defineProperty(popup, 'closed', { value: false });
|
||||||
if ( arg3 === '' ) { return popup; }
|
if ( arg3 === '' ) { return popup; }
|
||||||
return new Proxy(popup, {
|
return new Proxy(popup, {
|
||||||
get: function(target, prop) {
|
get: function(target, prop) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue