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",
"env": {
"APIHOST": "http://192.168.178.127:3005",
// "APIHOST": "http://192.168.178.127:3005",
// "MONGOHOST": "reception",
// "MONGOUSRP": "admin:mongo4noise",
// "MONGOAUTH": "true",
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "laerm-web-sensorapi",
"version": "3.1.2",
"date": "2023-12-08 14:30 UTC",
"version": "3.1.3",
"date": "2024-08-02 14:15 UTC",
"private": true,
"scripts": {
"start": "node bin/www.js >>/var/log/noise.log 2>&1"
+5 -1
View File
@@ -190,7 +190,11 @@ import * as utils from "./chart_utilities.js";
params.seldate = 'heute'
}
console.log(currentLang)
history.pushState({}, '', '/')
if (parseInt(sysparams.csid) !== -1) {
history.pushState({}, '', `/${sysparams.csid}`)
} else {
history.pushState({}, '', '/')
}
dt.showDate(true, params)
// and show date/time every minute