Skip to content

Commit

Permalink
Tone down the ad block notification to the console.
Browse files Browse the repository at this point in the history
  • Loading branch information
FactorioBlueprints committed Nov 29, 2024
1 parent 5870159 commit ca9b6c3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/components/single/EfficientSingleBlueprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function EfficientSingleBlueprint()
const isModerator = useIsModerator();

const adBlocked = !(window.adsbygoogle && window.adsbygoogle.loaded);
console.log('Ad blocked:', adBlocked);

/*
const navigate = useNavigate();
Expand Down Expand Up @@ -105,18 +106,6 @@ function EfficientSingleBlueprint()

return (
<Container>
{adBlocked && (
<Row>
<Col>
<Card className="mt-4">
<Card.Body>
<FontAwesomeIcon icon={faExclamationTriangle} size='lg' fixedWidth />
{' Ad revenue is used to support hosting the project. Please consider turning off your ad blocker.'}
</Card.Body>
</Card>
</Col>
</Row>
)}
<Row>
<Col md={9}>
<div className='d-flex mt-4'>
Expand Down

0 comments on commit ca9b6c3

Please sign in to comment.