This commit is contained in:
gorhill 2015-03-14 14:59:39 -04:00
parent ed88939a63
commit 4e281715cf
1 changed files with 2 additions and 1 deletions

View File

@ -282,7 +282,8 @@ var onMessage = function(request, sender, callback) {
switch ( request.what ) { switch ( request.what ) {
case 'getPopupData': case 'getPopupData':
vAPI.tabs.get(request.tabId, function(tab) { vAPI.tabs.get(request.tabId, function(tab) {
callback(getStats(getTargetTabId(tab), tab.title)); // https://github.com/gorhill/uBlock/issues/1012
callback(getStats(getTargetTabId(tab), tab ? tab.title : ''));
}); });
return; return;