Fix CW issues in static view on Safari (Fixes #8354) (#8446)

* Fix CW issues in static view on Safari (8354)

* Fixed formatting issues

* Trailing space
lolsob-rspec
PatrickRWells 2018-08-25 16:19:13 -07:00 committed by Eugen Rochko
parent 3f59f13506
commit f89bd5fca5
1 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,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');