mirror of https://github.com/Lissy93/dashy.git
Carbon
This commit is contained in:
parent
796f11e960
commit
8eba317ff6
|
@ -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' },
|
||||
],
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue