separate script from site

This commit is contained in:
vuk 2024-08-22 16:28:31 +02:00
parent 71f351b2a4
commit 805c7694bb
2 changed files with 7 additions and 8 deletions

View File

@ -12,14 +12,7 @@
z-index: 1000;
}
</style>
<script async>
window.addEventListener("message", (event) => {
if (event.data.extensionDetected) {
const elementToHide = document.getElementById("test-milje");
if (elementToHide) elementToHide.style.display = "none";
}
});
</script>
<script async src="milje-main.js"></script>
<title>миљеген</title>
</head>
<body>

6
milje-main.js Normal file
View File

@ -0,0 +1,6 @@
window.addEventListener("message", (event) => {
if (event.data.extensionDetected) {
const elementToHide = document.getElementById("test-milje");
if (elementToHide) elementToHide.style.display = "none";
}
});