diff --git a/apps/ha/custom.html b/apps/ha/custom.html index 6c4bb9077..b0bb39242 100644 --- a/apps/ha/custom.html +++ b/apps/ha/custom.html @@ -22,21 +22,21 @@ }); - // When the 'upload' button is clicked... - document.getElementById("upload").addEventListener("click", function() { - // get the text to add - var text = document.getElementById("triggers").value; - console.log(text); - // build the app's text using a templated String - var app = text; - // send finished app (in addition to contents of app.json) - sendCustomizedApp({ - storage:[ - {name:"ha.trigger.json", url:"ha.trigger.json", content:app}, - ] + // When the 'upload' button is clicked... + document.getElementById("upload").addEventListener("click", function() { + // get the text to add + var text = document.getElementById("triggers").value; + console.log(text); + // build the app's text using a templated String + var app = text; + // send finished app (in addition to contents of app.json) + sendCustomizedApp({ + storage:[ + {name:"ha.trigger.json", url:"ha.trigger.json", content:app}, + ] + }); + console.log("Sent ha.trigger.json!"); }); - console.log("Sent ha.trigger.json!"); - }); diff --git a/apps/ha/metadata.json b/apps/ha/metadata.json index 9b4ca54af..0f9929d8c 100644 --- a/apps/ha/metadata.json +++ b/apps/ha/metadata.json @@ -8,7 +8,7 @@ "tags": "tool", "readme": "README.md", "supports": ["BANGLEJS2"], - "custom": "trigger.html", + "custom": "custom.html", "screenshots": [ {"url":"screenshot.png"}, {"url":"screenshot_2.png"},