mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Rename readWriteConfig to just config.js
This commit is contained in:
parent
2e4a56daa3
commit
fa15d8dcf6
2 changed files with 4 additions and 2 deletions
|
@ -4,10 +4,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<button type="button" id="show-config">Show Config</button>
|
||||
<form id="update-config" style="display: none;">
|
||||
<form id="config-form" style="display: none;">
|
||||
<h1 id="config-title"></h1>
|
||||
<h2>content-type</h2>
|
||||
</form>
|
||||
</body>
|
||||
<script src="views/scripts/readWriteConfig.js"></script>
|
||||
<script src="views/scripts/config.js"></script>
|
||||
</html>
|
|
@ -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]);
|
Loading…
Reference in a new issue