1
0
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:
NoobishSVK
2024-03-16 21:10:34 +01:00
parent c2441389bb
commit fa20a50e3e
4 changed files with 6 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ function sendUpdate() {
audioChannels: serverConfig.audio.audioChannels, audioChannels: serverConfig.audio.audioChannels,
audioQuality: serverConfig.audio.audioBitrate, audioQuality: serverConfig.audio.audioBitrate,
contact: serverConfig.identification.contact || '', contact: serverConfig.identification.contact || '',
device: serverConfig.deviceName || '', tuner: serverConfig.device || '',
bwLimit: bwLimit, bwLimit: bwLimit,
version: pjson.version version: pjson.version
}; };

View File

@@ -422,7 +422,7 @@ app.get('/', (req, res) => {
tuningLowerLimit: serverConfig.webserver.tuningLowerLimit, tuningLowerLimit: serverConfig.webserver.tuningLowerLimit,
tuningUpperLimit: serverConfig.webserver.tuningUpperLimit, tuningUpperLimit: serverConfig.webserver.tuningUpperLimit,
chatEnabled: serverConfig.webserver.chatEnabled, chatEnabled: serverConfig.webserver.chatEnabled,
device: serverConfig.tuner device: serverConfig.device
}) })
} }
}); });

View File

@@ -42,7 +42,7 @@ let serverConfig = {
tunePass: "", tunePass: "",
adminPass: "" adminPass: ""
}, },
tuner: 'tef', device: 'tef',
defaultFreq: 87.5, defaultFreq: 87.5,
publicTuner: true, publicTuner: true,
lockToAdmin: false, lockToAdmin: false,

View File

@@ -98,7 +98,7 @@ function submitData() {
tunePass, tunePass,
adminPass, adminPass,
}, },
tuner, device,
publicTuner, publicTuner,
lockToAdmin, lockToAdmin,
autoShutdown, autoShutdown,
@@ -184,8 +184,8 @@ function submitData() {
$("#com-devices").val(selectedDevice.text()); $("#com-devices").val(selectedDevice.text());
} }
$('#device-type').val(data.tuner); $('#device-type').val(data.device);
var selectedDevice = $(".option[data-value='" + data.tuner + "']"); var selectedDevice = $(".option[data-value='" + data.device + "']");
if (selectedDevice.length > 0) { if (selectedDevice.length > 0) {
$("#device-type").val(selectedDevice.text()); $("#device-type").val(selectedDevice.text());
} }