Moved load function

This commit is contained in:
Brychan Dempsey 2021-06-05 18:14:13 +12:00
parent d40dc06b93
commit 0bbf3bc5b5

View File

@ -6,10 +6,12 @@
$iFrameContents.find('html').replaceWith($entryContent);
// Next restore the style-sheets
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
}
$('iframe').load( function(){
console.log("Cleaning content");
cleanContent();
});
}
</script>
<iframe width="100%" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs/src/branch/master/README.md" frameborder="0"></iframe>