ft_transcendence/frontend/static/js/views/accounts/LogoutView.js
2023-11-29 22:51:57 +01:00

12 lines
294 B
JavaScript

import { client, navigateTo } from "../../index.js";
import AbstractAuthentifiedView from "../AbstractAuthentifiedView.js";
export default class extends AbstractAuthentifiedView
{
constructor(params) {
super(params);
this.setTitle("Logout");
client.logout();
navigateTo("/login")
}
}