fix false positive detection of popups

Possibly what was being experienced by this user:
https://twitter.com/Reiniervdhulst/status/1035251223669211137
This commit is contained in:
Raymond Hill 2018-08-31 09:26:10 -04:00
parent 8ca6239e64
commit aeb19c952b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ var onMessage = function(request, sender, callback) {
// The concatenation with the empty string ensure that the resulting value // The concatenation with the empty string ensure that the resulting value
// is a string. This is important since tab id values are assumed to be // is a string. This is important since tab id values are assumed to be
// of string type. // of string type.
var tabId = sender && sender.tab ? '' + sender.tab.id : 0; var tabId = sender && sender.tab ? sender.tab.id : 0;
// Sync // Sync
var response; var response;