// ---------- Boot ---------- (async function(){ // When the frontend itself is served from localhost, default the API URL to // local wrangler dev so devs don't have to dig the api-settings panel out // through an error banner. if(/^(localhost|127\.0\.0\.1)$/i.test(window.location.hostname)){ var u = document.getElementById('apiUrl'); if(u && /coregroupconsulting/.test(u.value)) u.value = 'http://localhost:8787'; } await refreshUser(); await recalculate(); })();