works until loading page
This commit is contained in:
7
spawn.js
7
spawn.js
@@ -2,7 +2,7 @@
|
||||
//1.grant host permission
|
||||
//
|
||||
//
|
||||
browser.runtime.onMessage.addListener(() =>
|
||||
browser.runtime.onMessage.addListener((message) =>
|
||||
{
|
||||
console.log("inside handler");
|
||||
if(message.state != "Init")//on init only load page
|
||||
@@ -16,8 +16,3 @@ console.log("inside handler");
|
||||
|
||||
});
|
||||
|
||||
//if(number>0)
|
||||
function handle(message)
|
||||
{
|
||||
// window.location = url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user