minor fixes

This commit is contained in:
2023-09-25 18:10:53 +03:00
committed by nikili0n
parent 229d1d4db7
commit 2d3d0c6afb
6 changed files with 4 additions and 25 deletions

View File

@@ -93,7 +93,7 @@
const link = document.getElementById("link").value
const xhr2 = new XMLHttpRequest();
// TODO: скорректировать ссылку, она должна быть относительной
xhr2.open('GET', 'http://0.0.0.0:8000/check/?link=' + link);
xhr2.open('GET', 'http://'+document.location.host+'/check/?link=' + link);
xhr2.responseType = 'json';
xhr2.onload = function() {
// TODO: добавить обработку исключений и всех возможных кодов в ответе