Better debugging

pull/1995/head
David Peer 2022-06-26 11:22:32 +02:00
parent aad3f43d87
commit 0bfa726a49
1 changed files with 2 additions and 1 deletions

View File

@ -22,11 +22,12 @@
try{
Util.showModal("Downloading trigger from BangleJs...");
Util.readStorageFile("ha.trigger.json", data=>{
textAreaTrigger.value = data;
textAreaTrigger.innerHTML = data;
});
console.log("Loaded from BangleJs:\n" + data);
} catch(ex){
console.log("(Warning) Failed loading ha.trigger.json from BangleJs. Using default.");
console.log(ex);
}
Util.hideModal();