From e351b1e79bf7028242665656181370f8f66f59cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Thernstr=C3=B6m?= Date: Fri, 17 May 2024 22:14:09 +0200 Subject: [PATCH] Logga om ad visas --- resources/views/components/events-map.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/components/events-map.blade.php b/resources/views/components/events-map.blade.php index b0dcb4d2..8bb060f8 100644 --- a/resources/views/components/events-map.blade.php +++ b/resources/views/components/events-map.blade.php @@ -356,6 +356,11 @@ class EventsMap { if (mutation.type === "attributes") { console.log("An attribute was modified on the ad: ", mutation); console.log("Ad status: ", node.dataset); + // behÄll ads som har adStatus="filled", anchorStatus="displayed" + if (node.dataset.adsbygoogleStatus === "filled" && node.dataset.anchorStatus === + "displayed") { + console.log("Ad is filled and displayed.", node); + } } } });