fix: send X-Sync-mode header to silverbullet
This commit is contained in:
parent
5e4fcfbdaa
commit
09fea14644
@ -30,6 +30,7 @@ export async function getDocuments(): Promise<Document[]> {
|
|||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
headers.append("Accept", "application/json");
|
headers.append("Accept", "application/json");
|
||||||
|
headers.append("X-Sync-Mode", "true");
|
||||||
log.debug("fetching all documents");
|
log.debug("fetching all documents");
|
||||||
const response = await fetch(`${SILVERBULLET_SERVER}/index.json`, {
|
const response = await fetch(`${SILVERBULLET_SERVER}/index.json`, {
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user