Skip to content

Commit

Permalink
Carbon
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jan 8, 2024
1 parent 796f11e commit 8eba317
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
],
};
8 changes: 0 additions & 8 deletions src/components/CarbonAd.js
Original file line number Diff line number Diff line change
@@ -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 (
<>
<div id="carbonads"></div>
Expand Down

0 comments on commit 8eba317

Please sign in to comment.