Fix saving of JSON
parent
108fc1e207
commit
ba21b8a48c
|
|
@ -6,4 +6,4 @@
|
||||||
0.06: Updated clkinfo icon.
|
0.06: Updated clkinfo icon.
|
||||||
0.07: Update clock_info to avoid a redraw
|
0.07: Update clock_info to avoid a redraw
|
||||||
0.08: Allow swiping to switch triggers
|
0.08: Allow swiping to switch triggers
|
||||||
0.09: Improve web interface
|
0.09: Improve web interface, arrows in UI
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
var triggerText = document.getElementById("triggers").value;
|
var triggerText = document.getElementById("triggers").value;
|
||||||
|
|
||||||
Util.showModal("Saving...");
|
Util.showModal("Saving...");
|
||||||
Util.writeStorage("ha.trigger.json", JSON.stringify(triggerText), ()=>{
|
Util.writeStorage("ha.trigger.json", triggerText, ()=>{
|
||||||
Util.hideModal();
|
Util.hideModal();
|
||||||
});
|
});
|
||||||
console.log("Sent ha.trigger.json!");
|
console.log("Sent ha.trigger.json!");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue