diff --git a/src/js/tab.js b/src/js/tab.js index af8c68a63..de97ff97b 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -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'; } }