fix: fetch json file path error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user