lang: window title updated

This commit is contained in:
AdrienLSH
2024-02-13 16:14:53 +01:00
parent 8a69664c74
commit 3433740d80
9 changed files with 21 additions and 16 deletions

View File

@ -1,7 +1,9 @@
import {lang} from '../../index.js'
export default class {
constructor(params, title) {
constructor(params, titleKey) {
this.params = params;
this.title = title;
this.titleKey = titleKey;
}
async postInit() {
@ -11,7 +13,7 @@ export default class {
}
setTitle() {
document.title = this.title;
document.title = lang.get(this.titleKey, 'Bozo Pong');
}
async getHtml() {