client: add title client option

This commit is contained in:
jean-emmanuel 2025-08-05 15:31:12 +02:00
parent 84bf487169
commit f38bcb9ea0
5 changed files with 10 additions and 2 deletions

View file

@ -43,4 +43,4 @@ window.JSON.parseFlex = require('json5').parse
window.DOM = require('./dom')
window.TITLE = PACKAGE.productName + ' v' + PACKAGE.version
window.TITLE = ENV.title || (PACKAGE.productName + ' v' + PACKAGE.version)

View file

@ -155,6 +155,8 @@ module.exports = {
setTitle: function(data) {
if (ENV.title) return
document.title = TITLE + (data ? ' (' + data + ')' : '')
},