diff --git a/website/canvas.html b/website/canvas.html index f1b27db..a92eed1 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -2298,29 +2298,6 @@ } })(); - // ── Auto-space resolution (logged-in users on demo → personal space) ── - (function() { - try { - var raw = localStorage.getItem('encryptid_session'); - if (!raw) return; - var session = JSON.parse(raw); - if (!session || !session.claims || !session.claims.username) return; - if (communitySlug !== 'demo') return; - fetch('/api/spaces/auto-provision', { - method: 'POST', - headers: { - 'Authorization': 'Bearer ' + session.accessToken, - 'Content-Type': 'application/json' - } - }).then(function(r) { return r.json(); }) - .then(function(data) { - if (data.slug) { - window.location.replace(rspaceNavUrl(data.slug, 'rspace')); - } - }).catch(function() {}); - } catch(e) {} - })(); - // ── Welcome overlay (first visit to demo) ── (function() { if (communitySlug !== 'demo') return;