minor fixes

This commit is contained in:
2023-09-25 18:10:53 +03:00
parent 8423e732c4
commit 862fd26dac
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: добавить обработку исключений и всех возможных кодов в ответе