This commit is contained in:
Brychan Dempsey 2021-06-05 19:52:26 +12:00
parent 971db6c6a7
commit 1d4df19e43

View File

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