Skip to content

Commit 3e5c840

Browse files
committed
Merge branch 'main' into feature/user-profile
2 parents 753a933 + f8244c9 commit 3e5c840

File tree

1 file changed

+5
-1
lines changed
  • web/src/modules/shared/components/client/ads

1 file changed

+5
-1
lines changed

web/src/modules/shared/components/client/ads/AdSlots.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const AdTemplate = ({
5656

5757
useEffect(() => {
5858
if (window) {
59-
(window.adsbygoogle = window.adsbygoogle || []).push({});
59+
try {
60+
(window.adsbygoogle = window.adsbygoogle || []).push({});
61+
} catch (e) {
62+
console.error(e);
63+
}
6064
}
6165
}, []);
6266

0 commit comments

Comments
 (0)