From 805c7694bbffda1c3d1261fad799f4a30c2996a9 Mon Sep 17 00:00:00 2001 From: vuk Date: Thu, 22 Aug 2024 16:28:31 +0200 Subject: [PATCH] separate script from site --- index.html | 9 +-------- milje-main.js | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 milje-main.js diff --git a/index.html b/index.html index 0800569..56dc838 100644 --- a/index.html +++ b/index.html @@ -12,14 +12,7 @@ z-index: 1000; } - + миљеген diff --git a/milje-main.js b/milje-main.js new file mode 100644 index 0000000..f94c3b6 --- /dev/null +++ b/milje-main.js @@ -0,0 +1,6 @@ +window.addEventListener("message", (event) => { + if (event.data.extensionDetected) { + const elementToHide = document.getElementById("test-milje"); + if (elementToHide) elementToHide.style.display = "none"; + } +}); \ No newline at end of file