1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

this fixes #1378: there may be no "clicked URL" (regression)

This commit is contained in:
gorhill 2016-02-14 10:55:23 -05:00
parent 1a127881ef
commit 95d6240b21

View File

@ -561,6 +561,7 @@ vAPI.tabs.onPopupUpdated = (function() {
// Check user switch first // Check user switch first
if ( if (
popupType !== 'popunder' && popupType !== 'popunder' &&
clickedURL !== '' &&
areDifferentURLs(targetURL, clickedURL) && areDifferentURLs(targetURL, clickedURL) &&
µb.hnSwitches.evaluateZ('no-popups', openerHostname) µb.hnSwitches.evaluateZ('no-popups', openerHostname)
) { ) {