revert boot import

This commit is contained in:
tamaina 2022-04-29 00:43:50 +09:00
parent ac9a269209
commit e0740f93d0

View file

@ -58,11 +58,14 @@
? `?salt=${localStorage.getItem('salt')}`
: '';
import(`/assets/${CLIENT_ENTRY}${salt}`)
.catch(async () => {
const script = document.createElement('script');
script.setAttribute('src', `/assets/${CLIENT_ENTRY}${salt}`);
script.setAttribute('type', 'module');
script.addEventListener('error', async () => {
await checkUpdate();
renderError('APP_FETCH_FAILED');
});
document.head.appendChild(script);
//#endregion
//#region Theme