From f95511c480d6eecb702ea2088ad3da66e3bbfb41 Mon Sep 17 00:00:00 2001 From: lifeadventurer Date: Thu, 28 Dec 2023 22:21:36 +0800 Subject: [PATCH] fix: fetch json file path error --- quote_generator/js/quote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote_generator/js/quote.js b/quote_generator/js/quote.js index fdc8c73..94bcd38 100644 --- a/quote_generator/js/quote.js +++ b/quote_generator/js/quote.js @@ -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;