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
This commit is contained in:
Ilya Kreymer 2024-03-27 21:49:19 -07:00 committed by GitHub
parent 00ced6dd6b
commit 86311ab4ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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) {