client: add title client option
This commit is contained in:
parent
84bf487169
commit
f38bcb9ea0
5 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -155,6 +155,8 @@ module.exports = {
|
|||
|
||||
setTitle: function(data) {
|
||||
|
||||
if (ENV.title) return
|
||||
|
||||
document.title = TITLE + (data ? ' (' + data + ')' : '')
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue