mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
Fix call to update for Reinitialize button
This commit is contained in:
@@ -253,7 +253,7 @@
|
|||||||
reinitialize.disabled = true;
|
reinitialize.disabled = true;
|
||||||
reinitialize.innerHTML = "Reinitializing...";
|
reinitialize.innerHTML = "Reinitializing...";
|
||||||
const csrfToken = document.cookie.split('; ').find(row => row.startsWith('csrftoken'))?.split('=')[1];
|
const csrfToken = document.cookie.split('; ').find(row => row.startsWith('csrftoken'))?.split('=')[1];
|
||||||
fetch('/api/reinitialize?&client=web', {
|
fetch('/api/update?&client=web?force=true', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user