minor fixes
This commit is contained in:
1 parent
8423e732c4
commit
862fd26dac
6 files changed
+4
-25
No files matched your search
@@ -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: добавить обработку исключений и всех возможных кодов в ответе
|
||||
|
||||
Reference in new issue
Block a user