refactoring
This commit is contained in:
parent
f64d3942d7
commit
dad6a77645
2 changed files with 2 additions and 7 deletions
|
@ -60,8 +60,6 @@
|
|||
? `?salt=${localStorage.getItem('salt')}`
|
||||
: '';
|
||||
|
||||
const head = document.getElementsByTagName('head')[0];
|
||||
|
||||
const script = document.createElement('script');
|
||||
script.setAttribute('src', `/assets/app.${v}.js${salt}`);
|
||||
script.setAttribute('async', 'true');
|
||||
|
@ -70,7 +68,7 @@
|
|||
renderError('APP_FETCH_FAILED');
|
||||
checkUpdate();
|
||||
});
|
||||
head.appendChild(script);
|
||||
document.head.appendChild(script);
|
||||
//#endregion
|
||||
|
||||
//#region Theme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue