Move actual logic to data/jusfox.js from index.js

This commit is contained in:
Klaus-Uwe Mitterer 2016-07-19 17:37:04 +02:00
parent 149c277c75
commit c107c0cdc7
2 changed files with 2 additions and 1 deletions

1
data/jusfox.js Normal file
View file

@ -0,0 +1 @@
if (document.body) document.body.style.border = '5px solid red';

View file

@ -4,6 +4,6 @@ require("sdk/tabs").on("ready", getLinks);
function getLinks(tab) { function getLinks(tab) {
tab.attach({ tab.attach({
contentScript: "if (document.body) document.body.style.border = '5px solid red';" contentScriptFile: self.data.url("jusfox.js")
}); });
} }