This commit is contained in:
Brychan Dempsey 2021-06-05 19:51:04 +12:00
parent 7994725f26
commit 971db6c6a7

View File

@ -1,6 +1,6 @@
<head>
<script>
var docframe = document.getElementById("docFrame");
var docframe = document.getElementById("docFrame").contentWindow.document;
var targetContent = docframe.querySelector(".file-view");
console.log(docframe);
docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML;