Skip to content

Commit 289929b

Browse files
committed
Handle loading ads
1 parent 5fc9869 commit 289929b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/AdFeed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mediaQuery } from '../../lib/styles/media';
55
function AdFeed() {
66
const [adBlocked, setAdBlocked] = useState(false);
77
useEffect(() => {
8-
if ((window as any)?.adsbygoogle?.push) {
8+
if (((window as any)?.adsbygoogle || [])?.push) {
99
(window as any).adsbygoogle = ((window as any).adsbygoogle || []).push(
1010
{},
1111
);

0 commit comments

Comments
 (0)