mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 00:23:17 +00:00
hotfix
This commit is contained in:
@@ -1,17 +1,3 @@
|
||||
|
||||
function docsIndex() {
|
||||
// loads latest index from https://raw.githubusercontent.com/arc53/DocsHUB/main/combined.json
|
||||
// and stores it in localStorage
|
||||
fetch('https://raw.githubusercontent.com/arc53/DocsHUB/main/combined.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
console.log('Success:', data);
|
||||
localStorage.setItem("docsIndex", JSON.stringify(data));
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
document.getElementById("select-docs").addEventListener("change", function() {
|
||||
localStorage.setItem('activeDocs', this.value)
|
||||
fetch('/api/docs_check', {
|
||||
|
||||
@@ -96,6 +96,18 @@ This will return a new DataFrame with all the columns from both tables, and only
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function docsIndex() {
|
||||
// loads latest index from https://raw.githubusercontent.com/arc53/DocsHUB/main/combined.json
|
||||
// and stores it in localStorage
|
||||
fetch('https://raw.githubusercontent.com/arc53/DocsHUB/main/combined.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
console.log('Success:', data);
|
||||
localStorage.setItem("docsIndex", JSON.stringify(data));
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
// check if api_key is set
|
||||
if (localStorage.getItem('apiKey') === null) {
|
||||
console.log("apiKey is not set")
|
||||
|
||||
Reference in New Issue
Block a user