diff --git a/lib/ice-coder.js b/lib/ice-coder.js
index 7551694..4fc8725 100644
--- a/lib/ice-coder.js
+++ b/lib/ice-coder.js
@@ -1851,6 +1851,11 @@ var ICEcoder = {
top.ICEcoder.previewWindow = window.open(filepath,"previewWindow");
if (["md"].indexOf(fileExt) > -1) {
top.ICEcoder.previewWindow.onload = function() {top.ICEcoder.previewWindow.document.documentElement.innerHTML = mmd(cM.getValue())};
+ } else {
+ top.ICEcoder.previewWindow.onload = function() {
+ // Do the pesticide plugin if it exists
+ try {top.ICEcoder.doPesticide();} catch(err) {};
+ }
}
}
},
diff --git a/lib/ice-coder.min.js b/lib/ice-coder.min.js
index eef275c..b3769de 100644
--- a/lib/ice-coder.min.js
+++ b/lib/ice-coder.min.js
@@ -81,8 +81,8 @@ ICEcoder.content.contentWindow["cM"+ICEcoder.cMInstances[f]].setOption("tabSize"
typeof top.ICEcoder.bugFileCheckInt&&clearInterval(top.ICEcoder.bugFileCheckInt);s&&top.ICEcoder.refreshFileManager()},updateResultsDisplay:function(a){ICEcoder.findReplace(top.get("find").value,!0,!1);top.get("results").style.display="show"==a?"inline-block":"none"},fullScreenSwitcher:function(){"undefined"!=typeof document.cancelFullScreen?document.fullScreen?document.cancelFullScreen():document.body.requestFullScreen():"undefined"!=typeof document.mozCancelFullScreen?document.mozFullScreen?document.mozCancelFullScreen():
document.body.mozRequestFullScreen():"undefined"!=typeof document.webkitCancelFullScreen&&(document.webkitIsFullScreen?document.webkitCancelFullScreen():document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT))},zipIt:function(a){a=a.replace(/\//g,"|");top.ICEcoder.filesFrame.contentWindow.frames.fileControl.location.href="plugins/zip-it/index.php?zip="+a+"&csrf="+top.ICEcoder.csrf},downloadFile:function(a){a=a.replace(/\//g,"|");top.ICEcoder.filesFrame.contentWindow.frames.fileControl.location.href=
"lib/download.php?file="+a+"&csrf="+top.ICEcoder.csrf},chmod:function(a,b){a=a.replace(top.iceRoot,"");top.ICEcoder.showHide("hide",top.get("blackMask"));top.ICEcoder.serverQueue("add","lib/file-control.php?action=perms&file="+a+"&perms="+b+"&csrf="+top.ICEcoder.csrf);top.ICEcoder.serverMessage("chMod "+b+" on
"+a)},openPreviewWindow:function(){if(0 Settings");"error"==top.ICEcoder.bugReportStatus&&top.ICEcoder.message("Error: can't find/access the error file paths");"ok"==top.ICEcoder.bugReportStatus&&top.ICEcoder.message("No new errors found");"bugs"==top.ICEcoder.bugReportStatus&&(a=top.ICEcoder.openFiles.indexOf(top.ICEcoder.bugReportPath.replace(/\|/g,"/")),-1