This commit is contained in:
Brychan Dempsey 2021-06-05 19:53:51 +12:00
parent 1d4df19e43
commit 89f407baa1

View File

@ -1,6 +1,6 @@
<head> <head>
<script> <script>
var docframe = document.getElementById("docFrame").contentWindow.document.body; var docframe = document.getElementById("docFrame").contentWindow;
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;