Skip to content

Commit

Permalink
Ignore codefund Ads in visual regression programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Feb 24, 2020
1 parent ed08f14 commit 810f82d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_shared/Ad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const Ad: React.FC = () => {
}
}, []);

if (process.env.VISUAL_TESTING) {
return null;
}

return (
<Grid container>
<span id="codefund-script-position" />
Expand Down

0 comments on commit 810f82d

Please sign in to comment.