mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 06:48:37 +02:00
reorganizations
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user