diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 8c7bc42..e3a851d 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -478,6 +478,8 @@ var ICEcoder = { } // Do the pesticide plugin if it exists try {top.ICEcoder.doPesticide();} catch(err) {}; + // Do the stats.js plugin if it exists + try {top.ICEcoder.doStatsJS('update');} catch(err) {}; }, // Clean up our loaded code @@ -2324,6 +2326,8 @@ var ICEcoder = { top.ICEcoder.previewWindow.onload = function() { // Do the pesticide plugin if it exists try {top.ICEcoder.doPesticide();} catch(err) {}; + // Do the stats.js plugin if it exists + try {top.ICEcoder.doStatsJS('open');} catch(err) {}; } } }