We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43777da commit 7567954Copy full SHA for 7567954
src/ui/components/docs/docsDialog.svelte
@@ -17,7 +17,7 @@
17
18
let manifest: IDocsManifest
19
let openPageUrl: Writable<string> = writable('/home')
20
- const maxAttempts = 10
+ const maxAttempts = 2
21
22
async function load(attemptCount: number = 0) {
23
manifest = await fetch(API)
@@ -28,12 +28,11 @@
28
})
29
.catch(err => {
30
console.error(
31
- `Failed to fetch docs manifest. (Attempt ${attemptCount + 1})\n` + err.stack
+ `Failed to fetch docs manifest. (Attempt ${attemptCount + 1})\n` + err.message
32
)
33
// retry
34
if (attemptCount >= maxAttempts) {
35
throw new Error(`Failed to fetch docs manifest after ${maxAttempts} attempts.`)
36
- return
37
}
38
void load(attemptCount + 1)
39
0 commit comments