1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

design changes, accessibility stuff

This commit is contained in:
NoobishSVK
2024-07-18 14:57:43 +02:00
parent 3a6deecc02
commit 3d608ae8e8
17 changed files with 259 additions and 138 deletions

View File

@@ -4,6 +4,7 @@ const fetch = require('node-fetch');
const { logDebug, logError, logInfo, logWarn } = require('./console');
const { serverConfig, configUpdate, configSave } = require('./server_config');
var pjson = require('../package.json');
var os = require('os');
let timeoutID = null;
@@ -60,6 +61,7 @@ function sendKeepalive() {
}
function sendUpdate() {
let currentOs = os.type() + ' ' + os.release();
let bwLimit = '';
if (serverConfig.webserver.tuningLimit === true) {
@@ -76,7 +78,8 @@ function sendUpdate() {
contact: serverConfig.identification.contact || '',
tuner: serverConfig.device || '',
bwLimit: bwLimit,
version: pjson.version
os: currentOs,
version: pjson.version
};
if (serverConfig.identification.token)