Skip to content

Commit

Permalink
Logga om ad visas
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed May 17, 2024
1 parent 3a07533 commit e351b1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/views/components/events-map.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
});
Expand Down

0 comments on commit e351b1e

Please sign in to comment.