* fix `start` / `stop` / `restart` commands #1287
* added message, if profile was not read until now #1300
This commit is contained in:
lumapu 2023-12-29 15:09:14 +01:00
parent 7c08d934a9
commit cf19423d91
6 changed files with 41 additions and 11 deletions

View file

@ -119,21 +119,21 @@
function parse(obj) {
if(null != obj) {
parseGeneric(obj["generic"]);
parseGeneric(obj.generic);
if(null != obj["refresh"]) {
if(null != obj.refresh) {
var meta = document.createElement('meta');
meta.httpEquiv = "refresh"
meta.content = obj["refresh"] + "; URL=" + obj["refresh_url"];
meta.content = obj.refresh + "; URL=" + obj.refresh_url;
document.getElementsByTagName('head')[0].appendChild(meta);
}
else {
parseRadio(obj.system);
parseMqtt(obj.system.mqtt);
parseSysInfo(obj["system"]);
parseSysInfo(obj.system);
getAjax('/api/index', parseIndex);
}
document.getElementById("html").innerHTML = obj["html"];
document.getElementById("html").innerHTML = obj.html;
}
}