1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00
This commit is contained in:
gorhill 2017-01-07 10:50:53 -05:00
parent 30e02a7250
commit 6175a216b7

View File

@ -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';
} }
} }