mirror of
https://github.com/miljegen/miljegen-website.git
synced 2024-10-30 07:23:43 +00:00
separate script from site
This commit is contained in:
parent
71f351b2a4
commit
805c7694bb
@ -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
6
milje-main.js
Normal 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";
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user