mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Reduce data dumped in console log from web, desktop app
This commit is contained in:
@@ -188,7 +188,6 @@
|
|||||||
fetch(url, { headers })
|
fetch(url, { headers })
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
document.getElementById("results").innerHTML = render_results(data, query, type);
|
document.getElementById("results").innerHTML = render_results(data, query, type);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,7 +359,6 @@
|
|||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log('Success:', data);
|
|
||||||
if (data.detail != null) {
|
if (data.detail != null) {
|
||||||
throw new Error(data.detail);
|
throw new Error(data.detail);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,6 @@
|
|||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
document.getElementById("results").innerHTML = render_results(data, query, type);
|
document.getElementById("results").innerHTML = render_results(data, query, type);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user