Files
Kronic-Krusaders/JS/room-picker.js
T
2026-11-25 20:21:57 -06:00

1 line
311 B
JavaScript

document.getElementById('roomPickerLogout').addEventListener('click',async()=>{try{const r=await fetch('/api/auth/logout',{method:'POST',credentials:'same-origin'});if(!r.ok)throw Error('Sign out failed');location.replace('/login');}catch(e){document.getElementById('roomPickerError').textContent=e.message;}});