diff options
author | ThibG <thib@sitedethib.com> | 2018-08-26 19:12:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 19:12:07 +0200 |
commit | af934b90710a2ce1099d3ceda5de7bcf0e94595c (patch) | |
tree | 71e25690e6300d0235d515ccd0241d082c8d1abe /app/javascript/packs | |
parent | 2903f8f36b7c41b77de4ad6c8c5b0a6c0b2a7ace (diff) | |
parent | be20eb4b2f4e55c472263a98a2c07b4e805d9bd5 (diff) |
Merge pull request #674 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/public.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index e5fdc7f83..1cb491e17 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -63,7 +63,10 @@ function main() { .catch(error => console.error(error)); } - new Rellax('.parallax', { speed: -1 }); + const parallaxComponents = document.querySelectorAll('.parallax'); + if (parallaxComponents.length > 0 ) { + new Rellax('.parallax', { speed: -1 }); + } const history = createHistory(); const detailedStatuses = document.querySelectorAll('.public-layout .detailed-status'); |