1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02: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 !== '' ) {
// 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';
}
}