Skip to content

Commit 69424b1

Browse files
committed
fix(ads): remove unnecessary <script> tag inside ad slots
1 parent 3907c3a commit 69424b1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • apps/frontend/src/modules/shared/components/client/ads

apps/frontend/src/modules/shared/components/client/ads/AdSlots.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { faClose } from '@fortawesome/free-solid-svg-icons';
44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5-
import Script from 'next/script';
65
import { useEffect, useRef, useState } from 'react';
76

87
import { cn } from '@web/lib/utils';
@@ -172,11 +171,6 @@ const AdTemplate = ({
172171
) : (
173172
<div className={cn(className, isHidden ? hiddenClassName : '')}>
174173
<InfoText />
175-
<Script
176-
async
177-
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${pubId}`}
178-
crossOrigin='anonymous'
179-
/>
180174
{!isHidden && (
181175
<>
182176
<ins

0 commit comments

Comments
 (0)