refactor: use readStorageJSON function
parent
04d838dccc
commit
3e22a9690a
|
|
@ -70,11 +70,11 @@
|
||||||
function getData() {
|
function getData() {
|
||||||
// show loading window
|
// show loading window
|
||||||
Util.showModal("Loading...");
|
Util.showModal("Loading...");
|
||||||
Util.readStorage('hassio.json', data=>{
|
Util.readStorageJSON('hassio.json', data=>{
|
||||||
// remove window
|
// remove window
|
||||||
Util.hideModal();
|
Util.hideModal();
|
||||||
|
|
||||||
document.getElementById('json').value = JSON.stringify(JSON.parse(data), null, 1);
|
document.getElementById('json').value = JSON.stringify(data, null, 1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue