From 86311ab4ea7ecbf661416729d96ea1c578d4adaf Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Wed, 27 Mar 2024 21:49:19 -0700 Subject: [PATCH] merge 1.9.5 fixes (#1637) retry loading profile if initial load fails, follow-up to #1604 - Add missing setTimeout to retry profile loading bump RWP to 1.8.15 --- chart/values.yaml | 2 +- frontend/src/features/browser-profiles/profile-browser.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index f6c42357..cbae7fb4 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -70,7 +70,7 @@ allow_dupe_invites: "0" invite_expire_seconds: 604800 # base url for replayweb.page -rwp_base_url: "https://cdn.jsdelivr.net/npm/replaywebpage@1.8.12/" +rwp_base_url: "https://cdn.jsdelivr.net/npm/replaywebpage@1.8.15/" superuser: # set this to enable a superuser admin diff --git a/frontend/src/features/browser-profiles/profile-browser.ts b/frontend/src/features/browser-profiles/profile-browser.ts index eb682248..11ab1563 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) {