]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
load empty page by click button
authorBastian Dehn <hhaalo@arcor.de>
Sun, 23 Jun 2024 14:54:26 +0000 (16:54 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 23 Jun 2024 14:54:26 +0000 (16:54 +0200)
src/xmlviewer/viewer.html

index 97cb679aee90a257c032d3e3c92a261d8f5d2a14..b2efd811185d51356d93c8218189b26f7d22ddeb 100644 (file)
@@ -35,6 +35,7 @@
                                function loadFile() {
                                        const fileinput = document.getElementById("filepath");
                                        const element = document.getElementById("content");
+                                       element.innerHTML = '';
                                        const filereader = new FileReader();
                                        filereader.onload = data => {
                                                const parser = new DOMParser();