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

Further fine tune nowoif scriptlet

This commit is contained in:
Raymond Hill 2020-08-18 09:11:40 -04:00
parent 0598476b99
commit cb6486859c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -80,7 +80,7 @@
const decoy = /\bobj\b/.test(arg3)
? createDecoy('object', 'data', url)
: createDecoy('iframe', 'src', url);
let popup = decoy.contentWindow;
let popup = decoy.contentWindow || decoy;
Object.defineProperty(popup, 'closed', { value: false });
if ( /\blog\b/.test(arg3) ) {
popup = new Proxy(popup, {