Mercurial Hosting > disearch
diff src/lib/Shared.luan @ 8:9534dd5eda89
use avatar
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 24 Oct 2023 19:31:33 -0600 |
parents | d59ae3e468f1 |
children | 88f425d261b3 |
line wrap: on
line diff
--- a/src/lib/Shared.luan Tue Oct 24 18:59:42 2023 -0600 +++ b/src/lib/Shared.luan Tue Oct 24 19:31:33 2023 -0600 @@ -30,7 +30,7 @@ <% if get_user() == nil then %> <a href="login1.red">login</a> <% else %> - <a href="javascript:logout()">logout</a> + <a href="javascript:logout()"><script>document.write(`<img src="https://cdn.discordapp.com/avatars/${localStorage.user_id}/${localStorage.user_avatar}.png">`)</script></a> <% end %> </div> <hr> @@ -48,7 +48,7 @@ function Shared.discord_redirect_uri() local request = Http.request - return request.scheme.."://"..request.headers["Host"].."/login2.red" + return request.scheme.."://"..request.headers["Host"].."/login2.html" end return Shared