refactor: use readStorageJSON function

pull/3246/head
ellabellla 2024-03-11 21:46:30 +11:00
parent 04d838dccc
commit 3e22a9690a
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@
function getData() {
// show loading window
Util.showModal("Loading...");
Util.readStorage('hassio.json', data=>{
Util.readStorageJSON('hassio.json', data=>{
// remove window
Util.hideModal();
document.getElementById('json').value = JSON.stringify(JSON.parse(data), null, 1);
document.getElementById('json').value = JSON.stringify(data, null, 1);
});
}