Update
This commit is contained in:
parent
2a7cb2b07b
commit
4120805429
|
@ -46,7 +46,7 @@ document.addEventListener("DOMContentLoaded", ready);
|
|||
async function fetchData() {
|
||||
let log = document.getElementById('log');
|
||||
|
||||
const response = await fetch(`https://melawy.ru/json/index.html`);
|
||||
const response = await fetch(`json/index.html`);
|
||||
|
||||
if (response.ok) { // если HTTP-статус в диапазоне 200-299
|
||||
// получаем тело ответа (см. про этот метод ниже)
|
||||
|
|
Loading…
Reference in New Issue