From ea723fad610898881c76e2dd81a74113e4d3d31c Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Tue, 26 Mar 2024 20:55:19 -0700 Subject: [PATCH] retry loading profile if initial load fails (#1629) follow-up to #1604 Add missing setTimeout to retry profile loading. --- frontend/src/features/browser-profiles/profile-browser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/features/browser-profiles/profile-browser.ts b/frontend/src/features/browser-profiles/profile-browser.ts index 2e12aa1b9..505457d8d 100644 --- a/frontend/src/features/browser-profiles/profile-browser.ts +++ b/frontend/src/features/browser-profiles/profile-browser.ts @@ -307,6 +307,10 @@ export class ProfileBrowser extends LiteElement { try { const resp = await fetch(result.url, { method: "HEAD" }); if (!resp.ok) { + this.pollTimerId = window.setTimeout( + () => void this.checkBrowserStatus(), + POLL_INTERVAL_SECONDS * 1000, + ); return; } } catch (e) {