diff --git a/docs_v1.0/doc_wasm/index.html b/docs_v1.0/doc_wasm/index.html index 5afba60..27bde6e 100644 --- a/docs_v1.0/doc_wasm/index.html +++ b/docs_v1.0/doc_wasm/index.html @@ -168,6 +168,7 @@ async function initApp() { await initWasm(); el.innerHTML = '

Building modules...

'; var listEl = document.getElementById('module-list'); + listEl.innerHTML = ''; MODULES.forEach(function(m) { var a = document.createElement('a'); a.className = 'module-link'; @@ -193,10 +194,14 @@ async function initApp() { e.preventDefault(); e.stopPropagation(); try { - await fetch('/api/v1/auth/logout', {method:'POST'}); + await fetch('/api/v1/auth/logout', {method:'POST', credentials:'include'}); } catch(_) {} - el.innerHTML = '

Logged out. Session cleared.

'; - document.getElementById('logout-btn').style.display = 'none'; + // Clear client-side cookies + document.cookie.split(';').forEach(function(c) { + document.cookie = c.trim().split('=')[0] + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; + }); + document.getElementById('sidebar').style.display = 'none'; + showLoginForm(); }; // Load initial module from hash or default