Upload files to "kronic-chat/js"
This commit is contained in:
@@ -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){}})();
|
||||
Reference in New Issue
Block a user