Added a config page
This commit is contained in:
@@ -300,7 +300,7 @@ function onUpdateCard(m) {
|
||||
|
||||
function onConfigChange(m) {
|
||||
data = JSON.parse(m.body)
|
||||
for(const [key, value] of data.entries()) {
|
||||
for(const [key, value] of Object.entries(data)) {
|
||||
console.log("New config option : ", key, "=", value)
|
||||
gc[key] = value
|
||||
switch(key) {
|
||||
@@ -320,8 +320,6 @@ function onConfigChange(m) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
cards[i] = data
|
||||
updateCard(i)
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
Reference in New Issue
Block a user