mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.32
* fix `start` / `stop` / `restart` commands #1287 * added message, if profile was not read until now #1300
This commit is contained in:
parent
7c08d934a9
commit
cf19423d91
6 changed files with 41 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue