server: missing app name in some places (eg zeroconf)

This commit is contained in:
bordun 2020-11-08 16:58:38 +01:00
parent c9a02976ed
commit 8f996a23e0
5 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@ var template = [{
if (process.platform === 'darwin') {
// Add app menu (macOs)
template.unshift({
label: settings.infos.appName,
label: settings.infos.productName,
submenu: [
{
label: 'Hide ' + infos.productName,

View file

@ -10,7 +10,7 @@ module.exports = function(options={}) {
var window
window = new BrowserWindow({
title: options.title || settings.infos.appName,
title: options.title || settings.infos.productName,
icon: path.resolve(__dirname + '/../assets/logo.png'),
backgroundColor: options.color || theme.backgroundColor,
type: options.type,

View file

@ -129,7 +129,7 @@ class OscTCPServer extends EventEmitter {
}
zeroconf.publish({
name: settings.infos.appName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''),
name: settings.infos.productName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''),
protocol: 'tcp',
type: 'osc',
port: tcpInPort

View file

@ -19,7 +19,7 @@ oscUDPServer.on('error', function(e) {
})
zeroconf.publish({
name: settings.infos.appName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''),
name: settings.infos.productName + (settings.read('instance-name') ? ' (' + settings.read('instance-name') + ')' : ''),
protocol: 'udp',
type: 'osc',
port: oscInPort

View file

@ -144,7 +144,7 @@ function httpCheck(ok, error){
}
zeroconf.publish({
name: settings.infos.appName + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''),
name: settings.infos.productName + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''),
type: 'http',
port: settings.read('port') || 8080
}).on('error', (e)=>{