pull/1995/head
David Peer 2022-06-26 11:42:13 +02:00
parent 2ea52e9f52
commit d9b4d27a82
1 changed files with 2 additions and 5 deletions

View File

@ -20,16 +20,13 @@
<script>
function onInit(){
try{
Util.showModal("Downloading trigger from BangleJs...");
Util.readStorageFile("ha.trigger.json", data=>{
document.getElementById("triggers").innerHTML = data;
Util.hideModal();
Util.readStorage("ha.trigger.json", data=>{
document.getElementById("triggers").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();
}
}