Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
lazyframe('.lazyframe');
API.trackPage(Constants.pages.HOME);
$(window).scroll(() => {
const scroll = $(window).scrollTop();
// >=, not <=
if (scroll >= 75) {
// clearHeader, not clearheader - caps H
$('.navbar-homepage').addClass('dark-header');
} else if (scroll <= 75) {
$('.navbar-homepage').removeClass('dark-header');
}
});
if (document.location.href.indexOf('invite') != -1) {
componentDidMount() {
lazyframe('.lazyframe');
}
componentDidMount() {
lazyframe('.lazyframe');
}
componentDidMount() {
lazyframe('.lazyframe');
}
componentDidMount() {
lazyframe('.lazyframe');
}
componentDidMount() {
lazyframe('.lazyframe');
}