ft_transcendence/frontend/static/js/views/accounts/LogoutView.js
2023-11-29 20:56:32 +01:00

12 lines
298 B
JavaScript

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