mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
fix #2291
This commit is contained in:
parent
30e02a7250
commit
6175a216b7
@ -584,7 +584,7 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||||||
if ( openerHostname !== '' ) {
|
if ( openerHostname !== '' ) {
|
||||||
// Check per-site switch first
|
// Check per-site switch first
|
||||||
if ( µb.hnSwitches.evaluateZ('no-popups', openerHostname) ) {
|
if ( µb.hnSwitches.evaluateZ('no-popups', openerHostname) ) {
|
||||||
if ( typeof clickedURL !== 'string' || areDifferentURLs(targetURL, clickedURL) ) {
|
if ( typeof clickedURL === 'string' && areDifferentURLs(targetURL, clickedURL) ) {
|
||||||
return 'ub:no-popups: ' + µb.hnSwitches.z + ' true';
|
return 'ub:no-popups: ' + µb.hnSwitches.z + ' true';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user