From 8eba317ff60eea1e81bba2f7607c482e150d957b Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 8 Jan 2024 10:09:51 +0000 Subject: [PATCH] Carbon --- docusaurus.config.js | 2 -- src/components/CarbonAd.js | 8 -------- 2 files changed, 10 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 6f810ff8..1ef3d33b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -146,7 +146,5 @@ module.exports = { scripts: [ // Plausible Analytics (no tracking, just hit counter, using self-hosted Plausible) {src: 'https://no-track.as93.net/js/script.js', defer: true, 'data-domain': 'dashy.to'}, - // Carbon Ads - { src: '//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto', async: true, id: '_carbonads_js' }, ], }; diff --git a/src/components/CarbonAd.js b/src/components/CarbonAd.js index fe728acf..f99f1d29 100644 --- a/src/components/CarbonAd.js +++ b/src/components/CarbonAd.js @@ -1,14 +1,6 @@ import React, { useEffect } from 'react'; const CarbonAds = () => { - useEffect(() => { - const script = document.createElement('script'); - script.src = '//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto'; - script.id = '_carbonads_js'; - script.async = true; - document.body.appendChild(script); - }, []); - return ( <>