()
| 197 | ========================= */ |
| 198 | export function triggerLogout() { |
| 199 | const clearWelcomeFlags = () => { |
| 200 | try { |
| 201 | // one-per-tab toast guard |
| 202 | sessionStorage.removeItem('__fr_welcomed'); |
| 203 | // if you also used the per-user (all-tabs) guard, clear that too: |
| 204 | const u = localStorage.getItem('username') || ''; |
| 205 | if (u) localStorage.removeItem(`__fr_welcomed_${u}`); |
| 206 | } catch (e) { } |
| 207 | }; |
| 208 | |
| 209 | _nativeFetch(withBase("/api/auth/logout.php"), { |
| 210 | method: "POST", |