Skip to content

Commit

Permalink
retry loading profile if initial load fails (#1629)
Browse files Browse the repository at this point in the history
follow-up to #1604

Add missing setTimeout to retry profile loading.
  • Loading branch information
ikreymer committed Mar 27, 2024
1 parent 08ee857 commit ea723fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/features/browser-profiles/profile-browser.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit ea723fa

Please sign in to comment.