We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e3593 commit b4c3109Copy full SHA for b4c3109
src/components/GoogleScripts.tsx
@@ -106,16 +106,18 @@ function Gad({
106
googletag.display?.(adId)
107
googletag.pubads?.().refresh([adSlot.slot])
108
}
109
+ })
110
- // Set individual refresh intervals for each ad
111
- const interval = setInterval(function () {
112
- cmd.push(function () {
113
- googletag.pubads?.().refresh([adSlot.slot])
114
- })
115
- }, adSlot.refreshInterval)
+ // Set individual refresh intervals for each ad
+ const interval = setInterval(function () {
+ cmd.push(function () {
+ googletag.pubads?.().refresh([adSlot.slot])
116
+ }, adSlot.refreshInterval)
117
- return () => clearInterval(interval)
118
+ return () => {
119
+ clearInterval(interval)
120
+ }
121
}, [])
122
123
return (
0 commit comments