mirror of https://github.com/gorhill/uBlock.git
fix #2291
This commit is contained in:
parent
30e02a7250
commit
6175a216b7
|
@ -584,7 +584,7 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||
if ( openerHostname !== '' ) {
|
||||
// Check per-site switch first
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue