mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ci: remove useless packtracker
This commit is contained in:
1 parent
2def671b62
commit
2a54b0aa25
3 files changed
+6
-20
No files matched your search
@@ -32,12 +32,6 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
// eslint-disable-next-line camelcase
|
||||
try { __webpack_public_path__ = UiContext.cdn_prefix; } catch (e) { }
|
||||
|
||||
const res = await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' });
|
||||
const data = await res.json();
|
||||
eval(data[0]); // eslint-disable-line no-eval
|
||||
data.shift();
|
||||
window.Hydro.preload = data;
|
||||
|
||||
const e = document.createElement('style');
|
||||
const dark = UiContext.domain.nav_logo_dark || UiContext.nav_logo_dark;
|
||||
const dark2x = UiContext.domain.nav_logo_dark_2x || UiContext.nav_logo_dark_2x;
|
||||
@@ -54,5 +48,11 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
}` : ''}`;
|
||||
document.body.appendChild(e);
|
||||
|
||||
const res = await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' });
|
||||
const data = await res.json();
|
||||
eval(data[0]); // eslint-disable-line no-eval
|
||||
data.shift();
|
||||
window.Hydro.preload = data;
|
||||
|
||||
import('./hydro');
|
||||
}, false);
|
||||
Reference in new issue
Block a user