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

20
home.js
View File

@@ -1,13 +1,13 @@
window.onload = run;
function run()
{
document.getElementById("id_run").addEventListener("click", function(e){
console.log("triggered!!");
alert("judihudi");
startBackgroundScript();
e.preventDefault();
});
}
//window.onload = run;
//function run()
//{
document.getElementById("id_run").addEventListener("click", function(e){
console.log("triggered!!");
alert("judihudi");
startBackgroundScript();
e.preventDefault();
});
//}
function startBackgroundScript()