1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00
gorhill 2017-07-09 10:39:23 -04:00
parent 7fb034f640
commit 93f575c4c0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -650,11 +650,11 @@ vAPI.tabs.onPopupUpdated = (function() {
}
var re = new RegExp(logData.regex),
matches = re.exec(popunderURL);
if ( matches === null ) { return ''; }
if ( matches === null ) { return 0; }
var beg = matches.index,
end = beg + matches[0].length,
pos = popunderURL.indexOf(popunderHostname);
if ( pos === -1 ) { return ''; }
if ( pos === -1 ) { return 0; }
// https://github.com/gorhill/uBlock/issues/1471
// We test whether the opener hostname as at least one character
// within matched portion of URL.