code review

This commit is contained in:
gorhill 2015-04-12 18:56:26 -04:00
parent 9752c49d17
commit 0a17ba0597
1 changed files with 2 additions and 1 deletions

View File

@ -210,8 +210,9 @@ vAPI.tabs.get = function(tabId, callback) {
}
if ( typeof tabId !== 'number' || isNaN(tabId) ) {
onTabReady(null);
} else {
chrome.tabs.get(tabId, onTabReady);
}
chrome.tabs.get(tabId, onTabReady);
return;
}
var onTabReceived = function(tabs) {