reorganizations

This commit is contained in:
Will Bamberg
2015-09-02 14:07:18 -07:00
parent 979370c3ca
commit 88f703edd6
7 changed files with 36 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
// Assign beastify() as a listener for messages from the extension.
chrome.runtime.onMessage.addListener(beastify);
function beastify(request, sender, sendResponse) {
@@ -8,7 +8,7 @@ function beastify(request, sender, sendResponse) {
images[i].setAttribute("src", beastURL);
}
document.body.style.backgroundImage = "url(" + beastURL + ")";
chrome.runtime.onMessage.removeListener(beastify);
}
function beastNameToURL(beastName) {