revert boot import
This commit is contained in:
parent
ac9a269209
commit
e0740f93d0
1 changed files with 8 additions and 5 deletions
|
@ -58,11 +58,14 @@
|
||||||
? `?salt=${localStorage.getItem('salt')}`
|
? `?salt=${localStorage.getItem('salt')}`
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
import(`/assets/${CLIENT_ENTRY}${salt}`)
|
const script = document.createElement('script');
|
||||||
.catch(async () => {
|
script.setAttribute('src', `/assets/${CLIENT_ENTRY}${salt}`);
|
||||||
await checkUpdate();
|
script.setAttribute('type', 'module');
|
||||||
renderError('APP_FETCH_FAILED');
|
script.addEventListener('error', async () => {
|
||||||
});
|
await checkUpdate();
|
||||||
|
renderError('APP_FETCH_FAILED');
|
||||||
|
});
|
||||||
|
document.head.appendChild(script);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region Theme
|
//#region Theme
|
||||||
|
|
Loading…
Reference in a new issue