fix: fetch json file path error

This commit is contained in:
lifeadventurer
2023-12-28 22:21:36 +08:00
parent 83ef37a5d0
commit f95511c480

View File

@@ -4,7 +4,7 @@ const buttonElement = document.querySelector("button");
let quotes = [];
fetch("../json/quotes.json")
fetch("./json/quotes.json")
.then(response => response.json())
.then(data => {
quotes = data.quotes;