Touched up frame work

This commit is contained in:
benmcmahon100
2015-08-26 20:31:31 +01:00
parent 7a8c37b6c5
commit c481dcabfc

View File

@ -576,11 +576,11 @@ $(document).ready(function(){
isInitRun = true;
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
myCodeMirror.setValue(editorValue.replace(/fccss/gi, '<script>').replace(/fcces/gi, "</script>"));
if(typeof $preview.html() !== 'undefined') {
if(typeof $preview.html() !== 'undefined' && isInitRun) {
$preview.load(function(){
bonfireExecute(false);
bonfireExecute(true);
});
} else{
bonfireExecute(false);
bonfireExecute(true);
}
});