From 5708b23d196f952792bed942c93cf2a46fd6064e Mon Sep 17 00:00:00 2001 From: Qiyun Dai Date: Thu, 26 Sep 2024 13:17:22 -0500 Subject: [PATCH] more refactor --- ecc/scripts/scripts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecc/scripts/scripts.js b/ecc/scripts/scripts.js index 996f1121..472ad28e 100644 --- a/ecc/scripts/scripts.js +++ b/ecc/scripts/scripts.js @@ -165,8 +165,7 @@ export const LIBS = (() => { (async function loadPage() { const { loadArea, setConfig, getConfig, updateConfig, loadLana } = await import(`${LIBS}/utils/utils.js`); setConfig({ ...CONFIG, miloLibs: LIBS }); - const eccEnv = getECCEnv(getConfig()); - window.miloConfig = updateConfig({ ...getConfig(), eccEnv }); + window.miloConfig = updateConfig({ ...getConfig(), eccEnv: getECCEnv(getConfig()) }); await loadLana({ clientId: 'ecc-milo' }); await loadArea().then(() => { lazyCaptureProfile();