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
1 changed files with 1 additions and 0 deletions

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) {