refactoring
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user