Skip to content

Commit

Permalink
Update static/js/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pardnchiu committed Aug 17, 2024
1 parent 57b9de5 commit f8cc2e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { viewer as MDViewer } from "https://cdn.jsdelivr.net/gh/pardnchiu/PDMark

document.addEventListener("DOMContentLoaded", async _ => {
let pre = "";
await fetch('/README.md')

await fetch('./README.md')
.then(response => response.text())
.then(data => {
pre = data;
})
.catch(error => {
console.error('Error fetching the file:', error);
console.error(error);
});

const app = new PD({
Expand Down

0 comments on commit f8cc2e5

Please sign in to comment.