You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
device name hotfix 2
This commit is contained in:
@@ -74,7 +74,7 @@ function sendUpdate() {
|
||||
audioChannels: serverConfig.audio.audioChannels,
|
||||
audioQuality: serverConfig.audio.audioBitrate,
|
||||
contact: serverConfig.identification.contact || '',
|
||||
device: serverConfig.deviceName || '',
|
||||
tuner: serverConfig.device || '',
|
||||
bwLimit: bwLimit,
|
||||
version: pjson.version
|
||||
};
|
||||
|
||||
2
index.js
2
index.js
@@ -422,7 +422,7 @@ app.get('/', (req, res) => {
|
||||
tuningLowerLimit: serverConfig.webserver.tuningLowerLimit,
|
||||
tuningUpperLimit: serverConfig.webserver.tuningUpperLimit,
|
||||
chatEnabled: serverConfig.webserver.chatEnabled,
|
||||
device: serverConfig.tuner
|
||||
device: serverConfig.device
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ let serverConfig = {
|
||||
tunePass: "",
|
||||
adminPass: ""
|
||||
},
|
||||
tuner: 'tef',
|
||||
device: 'tef',
|
||||
defaultFreq: 87.5,
|
||||
publicTuner: true,
|
||||
lockToAdmin: false,
|
||||
|
||||
@@ -98,7 +98,7 @@ function submitData() {
|
||||
tunePass,
|
||||
adminPass,
|
||||
},
|
||||
tuner,
|
||||
device,
|
||||
publicTuner,
|
||||
lockToAdmin,
|
||||
autoShutdown,
|
||||
@@ -184,8 +184,8 @@ function submitData() {
|
||||
$("#com-devices").val(selectedDevice.text());
|
||||
}
|
||||
|
||||
$('#device-type').val(data.tuner);
|
||||
var selectedDevice = $(".option[data-value='" + data.tuner + "']");
|
||||
$('#device-type').val(data.device);
|
||||
var selectedDevice = $(".option[data-value='" + data.device + "']");
|
||||
if (selectedDevice.length > 0) {
|
||||
$("#device-type").val(selectedDevice.text());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user