Skip to content

Commit b06cd06

Browse files
committed
fix: hide ad units until real slot IDs are configured
- AdUnit returns null when slot is empty string - CSP: add blob: to connect-src, CookieYes domains to img-src and connect-src - AdScripts: load AdSense independently of CookieYes for verification - ads.txt: use real publisher ID
1 parent 97a37e1 commit b06cd06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/shared/AdUnit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function AdUnit({ slot, format, className, channel, testId }: AdUnitProps
5858
}
5959
}, [])
6060

61-
if (!isAdsEnabled()) return null
61+
if (!isAdsEnabled() || !slot) return null
6262

6363
const client = getAdsenseClient()
6464

0 commit comments

Comments
 (0)