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

@ -1,5 +1,10 @@
# Changelog
## 1.29.8
- client
- add `title` client option
## 1.29.7
- launcher

View file

@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "1.29.7",
"version": "1.29.8",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"

View file

@ -18,6 +18,7 @@ Client options can be set either with the server's `--client-options` option, or
| altTraversing | 1 / 0 | 0 | set to 1 to enable an alternative traversing behavior for toggle buttons (traversing gestures on toggle buttons will change their values in only one way depending on the first touched button's state) |
| virtualKeyboard | 1 / 0 | 0 | (desktop only) set to 1 to enable the virtual keyboard by default |
| notifications | 1 / 0 | 1 | set to 0 to hide notifications by default |
| title | string | '' | replace window title |
Example:

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 + ')' : '')
},