multiple changes WIP WIP NIT WORKING
This commit is contained in:
@@ -126,7 +126,6 @@ import {setCurrentTab, getCurrentTab, showError, fetchfromserver} from "./chart_
|
||||
// if called with a sensor-ID, show the live chart for this sensor
|
||||
async function main() {
|
||||
setNoUTC() // no UTC for HighCharts
|
||||
console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)
|
||||
// set correct language
|
||||
const currentLang = localStorage.getItem('curlang')
|
||||
if(currentLang === 'en') {
|
||||
@@ -167,8 +166,6 @@ import {setCurrentTab, getCurrentTab, showError, fetchfromserver} from "./chart_
|
||||
showError('Sensor ID ' + csid + ' is not of type noise')
|
||||
return
|
||||
}
|
||||
let triggerEl = document.querySelector('#livetab')
|
||||
bootstrap.Tab.getInstance(triggerEl).show() // Select tab by name
|
||||
params.sid = csid
|
||||
let ok = await showChart(params, 'live', 'dlive')
|
||||
setCurrentTab('livetab')
|
||||
|
||||
Reference in New Issue
Block a user