diff --git a/src/lib/Server.js b/src/lib/Server.js index aeaff6c..5678043 100644 --- a/src/lib/Server.js +++ b/src/lib/Server.js @@ -92,7 +92,7 @@ module.exports = class Server { .get('/api/ui-traffic-stats', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_TRAFFIC_STATS}"`; + return `${UI_TRAFFIC_STATS}`; })) .get('/api/ui-chart-type', defineEventHandler((event) => { @@ -102,12 +102,12 @@ module.exports = class Server { .get('/api/ui-show-links', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_SHOW_LINKS}"`; + return `${UI_SHOW_LINKS}`; })) .get('/api/ui-sort-clients', defineEventHandler((event) => { setHeader(event, 'Content-Type', 'application/json'); - return `"${UI_ENABLE_SORT_CLIENTS}"`; + return `${UI_ENABLE_SORT_CLIENTS}`; })) // Authentication diff --git a/src/www/index.html b/src/www/index.html index 3dd7030..34bf718 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -113,13 +113,18 @@ {{$t("backup")}} -