khoj/views/scripts/readWriteConfig.js

11 lines
339 B
JavaScript
Raw Normal View History

2021-11-27 10:50:05 -05:00
var showConfig = document.getElementById("show-config");
showConfig.addEventListener("click", () => {
fetch("/config")
.then(response => response.json())
.then(data => {
for (let key in data) {
console.log('key: ', key);
console.log(data[key]);
}
});
});