fix: some shit
This commit is contained in:
@@ -71,7 +71,9 @@ export async function getDocument(name: string): Promise<string> {
|
||||
if (cachedDocument) return cachedDocument;
|
||||
|
||||
log.debug("fetching document", { name });
|
||||
const response = await fetch(SILVERBULLET_SERVER + "/" + name);
|
||||
const headers = new Headers();
|
||||
headers.append("X-Sync-Mode", "true");
|
||||
const response = await fetch(SILVERBULLET_SERVER + "/" + name, { headers });
|
||||
const text = await response.text();
|
||||
|
||||
cache.setDocument(name, text);
|
||||
|
||||
Reference in New Issue
Block a user