From 8c9530fb4192a8c4670a1d6053228fbe5fbe288d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 14 Jul 2022 21:52:58 +0900 Subject: [PATCH] tweak boot.js --- packages/backend/src/server/web/boot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js index ca5f0639f..735708142 100644 --- a/packages/backend/src/server/web/boot.js +++ b/packages/backend/src/server/web/boot.js @@ -49,7 +49,7 @@ localStorage.setItem('localeVersion', v); } else { await checkUpdate(); - renderError('LOCALE_FETCH_FAILED'); + renderError('LOCALE_FETCH'); return; } } @@ -60,7 +60,7 @@ .catch(async e => { await checkUpdate(); console.error(e); - renderError('APP_FETCH_FAILED', e); + renderError('APP_IMPORT', e); }) //#endregion @@ -115,7 +115,7 @@ let errorsElement = document.getElementById('errors'); if (!errorsElement) { - document.documentElement.innerHTML = ` + document.body.innerHTML = ` @@ -286,7 +286,7 @@ } } catch (e) { console.error(e); - renderError('UPDATE_CHECK_FAILED', e); + renderError('UPDATE_CHECK', e); throw e; } }