42_ft_transcendence/frontend/static/js/views/abstracts/AbstractView.js
2024-02-20 09:22:11 +01:00

23 lines
355 B
JavaScript

import {lang} from '../../index.js';
export default class {
constructor(params, titleKey) {
this.params = params;
this.titleKey = titleKey;
}
async postInit() {
}
async leavePage() {
}
setTitle() {
document.title = lang.get(this.titleKey, this.titleKey);
}
async getHtml() {
return "";
}
}