Skip to content

Commit f397f4b

Browse files
authored
Update index.html
1 parent c20d685 commit f397f4b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/1.0.x/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,19 @@ <h1>
374374

375375
});
376376

377-
let file = getQueryElement("file")
377+
const params = new URLSearchParams(window.location.search);
378+
let file = params.get("file");
379+
380+
if(file){
378381

379382
fetch(file)
380383
.then(response => response.text())
381384
.then(text => {
382385
document.getElementById("mdc").innerHTML = marked.parse(text);
383386
});
384387

388+
}
389+
385390
</script>
386391

387392
</body>

0 commit comments

Comments
 (0)