Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore: fix carbon ads
- Loading branch information
1 parent
cefd92b
commit aa63f99
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, { Component } from 'react'; | ||
|
||
class Carbon extends Component { | ||
componentDidMount() { | ||
const carbon_wrapper = document.querySelector('.carbon-adds-wrapper'); | ||
const script = document.createElement("script"); | ||
script.src = '//cdn.carbonads.com/carbon.js?serve=CE7IPK3E&placement=reactstrapgithubio'; | ||
script.async = true; | ||
script.id = "_carbonads_js" | ||
carbon_wrapper.appendChild(script); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="carbon-adds-wrapper" /> | ||
); | ||
} | ||
} | ||
|
||
export default Carbon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters