mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-27 08:47:13 +09:00
1 parent
3f699e7ab5
commit
8967189fd2
2 files changed
+4
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
(function (){
|
(function (){
|
||||||
ensureSetting("Display offline slaves", "boolean", false);
|
ensureSetting("Display offline slaves", "boolean", false);
|
||||||
|
ensureSetting("Enable production graphs", "boolean", true);
|
||||||
}())
|
}())
|
||||||
|
|
||||||
function ensureSetting(setting, type, defaultSetting) {
|
function ensureSetting(setting, type, defaultSetting) {
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ setTimeout(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.querySelector("#slaves > #display").innerHTML = HTML
|
document.querySelector("#slaves > #display").innerHTML = HTML
|
||||||
|
|
||||||
|
if(JSON.parse(localStorage.settings)["Enable production graphs"]) {
|
||||||
let graphs = document.querySelectorAll(".productionGraph");
|
let graphs = document.querySelectorAll(".productionGraph");
|
||||||
for(let i = 0; i < graphs.length; i++) {
|
for(let i = 0; i < graphs.length; i++) {
|
||||||
// execute functions to make graphs
|
// execute functions to make graphs
|
||||||
@@ -35,6 +37,7 @@ setTimeout(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
xmlhttp.open("GET", "api/slaves", true);
|
xmlhttp.open("GET", "api/slaves", true);
|
||||||
xmlhttp.send();
|
xmlhttp.send();
|
||||||
}, 0)
|
}, 0)
|
||||||
|
|||||||
Reference in new issue
Block a user