diff --git a/views/market.pug b/views/market.pug index 3eb90ef..f9904fe 100644 --- a/views/market.pug +++ b/views/market.pug @@ -86,8 +86,8 @@ block content }); } $(window).resize(function () { - if (jqplot != null) - jqplot.replot( { resetAxes: false } ); + if (jqplot != null && $('#chart').is(':visible')) + jqplot.replot({ resetAxes: false }); }); }); .row