diff --git a/js/tab.js b/js/tab.js index 91e9877a0..efc635374 100644 --- a/js/tab.js +++ b/js/tab.js @@ -70,13 +70,13 @@ var bindToTabs = function(tabs) { var scriptStart = function(tabId) { var scriptEnd = function() { - chrome.tabs.executeScript(tab.id, { + chrome.tabs.executeScript(tabId, { file: 'js/contentscript-end.js', allFrames: true, runAt: 'document_idle' }); }; - chrome.tabs.executeScript(tab.id, { + chrome.tabs.executeScript(tabId, { file: 'js/contentscript-start.js', allFrames: true, runAt: 'document_idle'