From aeb19c952b782eec31e5de8da676b89edd08efdb Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 31 Aug 2018 09:26:10 -0400 Subject: [PATCH] fix false positive detection of popups Possibly what was being experienced by this user: https://twitter.com/Reiniervdhulst/status/1035251223669211137 --- src/js/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index daad1f167..e90e00149 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -87,7 +87,7 @@ var onMessage = function(request, sender, callback) { // 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 // of string type. - var tabId = sender && sender.tab ? '' + sender.tab.id : 0; + var tabId = sender && sender.tab ? sender.tab.id : 0; // Sync var response;