From e57982ce7037ef6146e9d67c2e2787f8a0bb4b3e Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 26 May 2016 01:30:32 +0200 Subject: [PATCH] Fix typo in pageAction checks --- background.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/background.js b/background.js index 39b0c94..22903d3 100644 --- a/background.js +++ b/background.js @@ -235,22 +235,20 @@ function isCoolUrl(url, callback) { chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { if(tab.active) { - isCoolUrl(tab.url, function (cool) { - if(cool) { - chrome.pageAction.show(tabId); - } - }); + isCoolUrl(tab.url, function (cool) { + if(cool) { + chrome.pageAction.show(tabId); + } }); } }); chrome.tabs.onActivated.addListener(function(activeInfo) { chrome.tabs.get(activeInfo.tabId, function(tab) { - isCoolUrl(tab.url, function(cool) { - if (cool) { - chrome.pageAction.show(activeInfo.tabId); - } - }); + isCoolUrl(tab.url, function(cool) { + if (cool) { + chrome.pageAction.show(activeInfo.tabId); + } }); }); });