mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-02 16:08:26 +02:00
fix #428 (two XHR requests at the same time results in strange behavior)
This commit is contained in:
parent
657f594307
commit
033d9f04e6
1 changed files with 2 additions and 2 deletions
|
@ -99,6 +99,7 @@
|
|||
parseESP(obj);
|
||||
window.setInterval("getAjax('/api/system', parseSys)", 10000);
|
||||
exeOnce = false;
|
||||
getAjax("/api/setup", parse);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,7 +151,6 @@
|
|||
}, false);
|
||||
}
|
||||
|
||||
getAjax("/api/system", parseSys);
|
||||
|
||||
// only for test
|
||||
function ctrlCb(obj) {
|
||||
|
@ -210,7 +210,7 @@
|
|||
getAjax("/api/ctrl", ctrlCb, "POST", JSON.stringify(obj));
|
||||
});
|
||||
|
||||
getAjax("/api/setup", parse);
|
||||
getAjax("/api/system", parseSys);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue