diff --git a/desktop/static/index.web.dev.html b/desktop/static/index.web.dev.html index d5eda16f5..0c3606a0a 100644 --- a/desktop/static/index.web.dev.html +++ b/desktop/static/index.web.dev.html @@ -201,9 +201,19 @@ function init() { const script = document.createElement('script'); script.src = window.flipperConfig.entryPoint; - script.onerror = (e) => { - showMessage('Failed to load entry point. Check Chrome Dev Tools console for more info.'); + const retry = (retries) => { + showMessage(`Failed to load entry point. Check Chrome Dev Tools console for more info. Retrying in: ${retries}`); + retries -= 1; + if (retries < 0) { + window.location.reload(); + } + else { + setTimeout(() => retry(retries), 1000); + } + } + + retry(3); }; document.body.appendChild(script); diff --git a/desktop/static/index.web.html b/desktop/static/index.web.html index c724d7041..80c2bdc17 100644 --- a/desktop/static/index.web.html +++ b/desktop/static/index.web.html @@ -106,9 +106,19 @@ function init() { const script = document.createElement('script'); script.src = window.flipperConfig.entryPoint; - script.onerror = (e) => { - showMessage('Script failure. Check Chrome Dev Tools console for more info.'); + const retry = (retries) => { + showMessage(`Failed to load entry point. Check Chrome Dev Tools console for more info. Retrying in: ${retries}`); + retries -= 1; + if (retries < 0) { + window.location.reload(); + } + else { + setTimeout(() => retry(retries), 1000); + } + } + + retry(3); }; document.body.appendChild(script);