This commit is contained in:
Valeria Fadeeva 2023-12-12 13:20:54 +05:00
parent 2e599775b9
commit 4dccc22e0a
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ document.addEventListener("DOMContentLoaded", ready);
async function fetchData() {
let log = document.getElementById('log');
const response = await fetch(`https://melawy.ru/json/`);
const response = await fetch(`https://melawy.ru/json/index.html`);
if (response.ok) { // если HTTP-статус в диапазоне 200-299
// получаем тело ответа (см. про этот метод ниже)