diff --git a/chrome/background.js b/chrome/background.js index 8183cf1..133328b 100644 --- a/chrome/background.js +++ b/chrome/background.js @@ -26,14 +26,15 @@ chrome.runtime.onInstalled.addListener(function () { actions: [new chrome.declarativeContent.ShowPageAction()] } ]); - chrome.pageAction.onClicked.addListener(function (tab) { - chrome.tabs.sendMessage(tab.id, {greeting: "hello"}, function(response) { - if (localStorage["target"] == "newTab") { - chrome.tabs.create({"url": response.imageUri}); - } else { - chrome.tabs.update({"url": response.imageUri}); - } - }); - }); + }); +}); + +chrome.pageAction.onClicked.addListener(function (tab) { + chrome.tabs.sendMessage(tab.id, {greeting: "hello"}, function(response) { + if (localStorage["target"] == "newTab") { + chrome.tabs.create({"url": response.imageUri}); + } else { + chrome.tabs.update({"url": response.imageUri}); + } }); }); \ No newline at end of file diff --git a/chrome/manifest.json b/chrome/manifest.json index 3480b18..f3aca0b 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -2,7 +2,7 @@ "name": "Hi-res cover art grabber", "description": "Retrieves larger versions of cover art on various online stores, like App Store.", "manifest_version": 2, - "version": "1.8.0", + "version": "2.0.0", "page_action": { "default_icon": { "19": "icons/button-19.png",