clean upd code and comments
This commit is contained in:
parent
e18ce05d99
commit
bb5b01e027
22
spawn.js
22
spawn.js
@ -1,22 +1,6 @@
|
|||||||
|
|
||||||
//1.grant host permission
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
//document.addEventListener("DOMContentLoaded",function(){
|
|
||||||
browser.runtime.sendMessage("Content_Loaded");
|
browser.runtime.sendMessage("Content_Loaded");
|
||||||
|
|
||||||
browser.runtime.onMessage.addListener(worker);
|
browser.runtime.onMessage.addListener(worker);
|
||||||
|
|
||||||
//});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// return Promise.resolve(true);
|
|
||||||
/*.then(function(){
|
|
||||||
window.location.replace(url);
|
|
||||||
});*/
|
|
||||||
function test(msg)
|
function test(msg)
|
||||||
{
|
{
|
||||||
console.log(`Spawn: received message:${msg}`);
|
console.log(`Spawn: received message:${msg}`);
|
||||||
@ -41,14 +25,8 @@ setTimeout(() => {
|
|||||||
{
|
{
|
||||||
console.log("element not found, already in Abo");
|
console.log("element not found, already in Abo");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log(message);
|
console.log(message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
browser.runtime.sendMessage("finished");
|
browser.runtime.sendMessage("finished");
|
||||||
},5000);
|
},5000);
|
||||||
let url = message;
|
|
||||||
console.log(url);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user