Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] catch errors in JS #156

Open
DavidBruchmann opened this issue Mar 16, 2023 · 0 comments
Open

[BUG] catch errors in JS #156

DavidBruchmann opened this issue Mar 16, 2023 · 0 comments

Comments

@DavidBruchmann
Copy link

Some feed entries are not loaded completely (i.e. if the image signature is expired) and trow js-errors then.
Therefore it's useful to catch those errors in socialFeed.js:

    if ($('.social-feed-container.owl-carousel').hasOwnProperty('owlCarousel')) {
        $('.social-feed-container.owl-carousel').owlCarousel(defaultOwlOptions);
    }

    if ($('.social-feed-container.masonry').hasOwnProperty('masonry')) {
        $('.social-feed-container.masonry').masonry({
            itemSelector: '.social-feed-item',
        }).imagesLoaded(function() {
            $('.social-feed-container.masonry').masonry({
                itemSelector: '.social-feed-item',
            });
        });
    }

    if ($('.social-feed-container .social-feed-title, .social-feed-container .social-feed-message').hasOwnProperty('dotdotdot')) {
        $('.social-feed-container .social-feed-title, .social-feed-container .social-feed-message').dotdotdot({
            watch: true
        });
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant