Move actual logic to data/jusfox.js from index.js
This commit is contained in:
parent
149c277c75
commit
c107c0cdc7
2 changed files with 2 additions and 1 deletions
1
data/jusfox.js
Normal file
1
data/jusfox.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
if (document.body) document.body.style.border = '5px solid red';
|
2
index.js
2
index.js
|
@ -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")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue