Files
computer-playbook/roles/sys-front-inj-logout/templates/logout_one_liner.js.j2
Kevin Veen-Birkenbach 86760a4be7 Improve logout patch debug and tighten detection
- Add debugMode parameter to initLogoutPatch with structured console logging
- Pass MODE_DEBUG into logout_one_liner init call
- Exclude <form> elements and large text blocks from logout candidates to avoid mapping LAM user list form as logout

Ref: https://chatgpt.com/share/692b325e-37c0-800f-bb5a-129aae4c65f8
2025-11-29 18:53:03 +01:00

9 lines
226 B
Django/Jinja

document.addEventListener('DOMContentLoaded', function() {
initLogoutPatch(
'{{ OIDC.CLIENT.LOGOUT_URL }}',
'{{ WEB_PROTOCOL }}',
'{{ PRIMARY_DOMAIN }}',
{{ MODE_DEBUG | lower }}
);
});