SilverBullet pivot to become an offline-first PWA (#403)

This commit is contained in:
Zef Hemel
2023-05-23 20:53:53 +02:00
committed by GitHub
parent b256269897
commit 5f484bed57
389 changed files with 4484 additions and 291129 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export async function readSecrets(keys: string[]): Promise<any[]> {
}
return collectedSecrets;
} catch (e: any) {
if (e.message === "Page not found") {
if (e.message === "Not found") {
throw new Error(`No such secret: ${keys[0]}`);
}
throw e;
@@ -34,7 +34,7 @@ export async function readSecret(key: string): Promise<any> {
}
return val;
} catch (e: any) {
if (e.message === "Page not found") {
if (e.message === "Not found") {
throw new Error(`No such secret: ${key}`);
}
throw e;