Skip to content

Commit

Permalink
Merge branch 'spicer/raptive-ads' of https://github.com/gladly-team/t…
Browse files Browse the repository at this point in the history
…ab-web into dev

# Conflicts:
#	src/pages/index.js
  • Loading branch information
Spicer Matthews committed Jan 17, 2024
2 parents ad0b8c7 + 45fbeeb commit 81501f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,12 @@ const Index = ({ data: fallbackData, userAgent }) => {
// No scolling on this home page.
useEffect(() => {
// Add the style when the component mounts
// eslint-disable-next-line no-undef
document.body.style.overflow = 'hidden'

// Revert back to the initial style when the component unmounts
return () => {
// eslint-disable-next-line no-undef
document.body.style.overflow = ''
}
}, [])
Expand Down

0 comments on commit 81501f2

Please sign in to comment.