Fixed path to html

pull/1995/head
David Peer 2022-06-26 12:41:53 +02:00
parent cc7e5600e3
commit 5461a7c6f5
2 changed files with 15 additions and 15 deletions

View File

@ -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!");
});
</script>
</body>

View File

@ -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"},