1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

Fine tune nowoif scriptlet

This commit is contained in:
Raymond Hill 2020-08-16 17:14:26 -04:00
parent f4bdee668c
commit b33065e198
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -80,6 +80,7 @@
const decoy1 = createDecoy('iframe', 'src', url);
const decoy2 = createDecoy('object', 'data', url);
const popup = decoy1.contentWindow || decoy2.contentWindow;
Object.defineProperty(popup, 'closed', { value: false });
if ( arg3 === '' ) { return popup; }
return new Proxy(popup, {
get: function(target, prop) {