diff --git a/beastify/manifest.json b/beastify/manifest.json index 4698129..c46c798 100644 --- a/beastify/manifest.json +++ b/beastify/manifest.json @@ -22,7 +22,9 @@ }, "web_accessible_resources": [ - "beasts/*.jpg" + "beasts/frog.jpg", + "beasts/turtle.jpg", + "beasts/snake.jpg" ] } diff --git a/beastify/popup/choose_beast.js b/beastify/popup/choose_beast.js index 05ffcc7..497be28 100644 --- a/beastify/popup/choose_beast.js +++ b/beastify/popup/choose_beast.js @@ -21,12 +21,10 @@ document.addEventListener("click", function(e) { chrome.tabs.executeScript(null, { file: "content_scripts/beastify.js" - }, setBeast); + }); - function setBeast() { - chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { - chrome.tabs.sendMessage(tabs[0].id, {beast: chosenBeast}); - }); - } + chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { + chrome.tabs.sendMessage(tabs[0].id, {beast: chosenBeast}); + }); });