works until loading page

This commit is contained in:
2024-03-17 14:40:01 +01:00
parent fee1b77f1c
commit 3a148716b2
4 changed files with 28 additions and 34 deletions

View File

@@ -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;
}