Files
2026-11-25 20:22:18 -06:00

1 line
547 B
JavaScript

(async()=>{try{const r=await fetch('/api/public/branding',{cache:'no-store'});if(!r.ok)return;const b=await r.json();const h=document.querySelector('.brand h1'),p=document.querySelector('.brand p');if(h)h.textContent=b.login_title||'Welcome';if(p)p.textContent=b.login_subtitle||'';if(b.name&&h){const s=document.createElement('div');s.textContent=b.name;h.before(s);}if(b.powered_by){const s=document.createElement('p');s.textContent='Powered by Kronic';s.style.textAlign='center';document.querySelector('.auth-card')?.append(s);}}catch(e){}})();