From 95eb02f3c995b4ed7c1f529c1ccee315dc2e398e Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 8 Sep 2014 13:49:49 -0400 Subject: [PATCH] code review --- js/tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'