Upload files to "kronic-chat/js"

This commit is contained in:
2026-11-25 20:25:51 -06:00
parent cd886f490e
commit 2615897782
5 changed files with 1815 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
(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){}})();