mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +00:00
Rename readWriteConfig to just config.js
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
var showConfig = document.getElementById("show-config");
|
||||
var configForm = document.getElementById("config-form");
|
||||
showConfig.addEventListener("click", () => {
|
||||
fetch("/config")
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
configForm.style.display = "block";
|
||||
for (let key in data) {
|
||||
console.log('key: ', key);
|
||||
console.log(data[key]);
|
||||
Reference in New Issue
Block a user