kthornbloom/Smoothproducts

fix simple bug url.indexOf is not a function

vahidalvandi opened this issue · 1 comments

<script type="text/javascript">
    /* wait for images to load */
    $(window).load( function() {
        $('.sp-wrap').smoothproducts();
    });
</script>

no work with jquery 3 bellow code work

<script type="text/javascript">

$(window).on('load', function() {  $('.sp-wrap').smoothproducts(); });
 
</script>

Try to add below code in your custom js instead.

$(function(){
$('.sp-wrap').smoothproducts();
});