~cytrogen/masto-fe

ref: e36d764aaa22458f1d8b5083105c85db164c7fda masto-fe/public/logout.html -rw-r--r-- 532 bytes
e36d764a — Matthew Jorgensen [feature] Preserve 'mastodon-settings' from localStorage on logout (#66) 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Logout | Masto-FE (🦥 flavour)</title>
    <script>
        const preserveSettings = localStorage.getItem("mastodon-settings");
        localStorage.clear();
        if (preserveSettings !== null) {
          localStorage.setItem("mastodon-settings", preserveSettings);
        }
        window.location.href = "/login.html";
    </script>
</head>
<body>
Clearing local storage and redirecting back to <a href="/login.html">login</a>...
</body>
</html>