Wenn SID angegeben, dann die SID wieder in die URL schreiben

Version agepasst
Lokale Testeinstelleung (lauch.json) angepasst
This commit is contained in:
2024-08-02 14:15:48 +00:00
parent 3447809f49
commit 8d99c73386
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
], ],
"program": "${workspaceFolder}/bin/www.js", "program": "${workspaceFolder}/bin/www.js",
"env": { "env": {
"APIHOST": "http://192.168.178.127:3005", // "APIHOST": "http://192.168.178.127:3005",
// "MONGOHOST": "reception", // "MONGOHOST": "reception",
// "MONGOUSRP": "admin:mongo4noise", // "MONGOUSRP": "admin:mongo4noise",
// "MONGOAUTH": "true", // "MONGOAUTH": "true",
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "laerm-web-sensorapi", "name": "laerm-web-sensorapi",
"version": "3.1.2", "version": "3.1.3",
"date": "2023-12-08 14:30 UTC", "date": "2024-08-02 14:15 UTC",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "node bin/www.js >>/var/log/noise.log 2>&1" "start": "node bin/www.js >>/var/log/noise.log 2>&1"
+4
View File
@@ -190,7 +190,11 @@ import * as utils from "./chart_utilities.js";
params.seldate = 'heute' params.seldate = 'heute'
} }
console.log(currentLang) console.log(currentLang)
if (parseInt(sysparams.csid) !== -1) {
history.pushState({}, '', `/${sysparams.csid}`)
} else {
history.pushState({}, '', '/') history.pushState({}, '', '/')
}
dt.showDate(true, params) dt.showDate(true, params)
// and show date/time every minute // and show date/time every minute