From b235b407159201aa10f14f12de6b448b70b0980f Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 28 Oct 2014 09:20:59 +0000 Subject: [PATCH] doStatsJS plugin runs after open and update events --- lib/ice-coder.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {}; } } }