forked from FOSS/BangleApps
Fixed path to html
parent
cc7e5600e3
commit
5461a7c6f5
|
@ -22,21 +22,21 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// When the 'upload' button is clicked...
|
// When the 'upload' button is clicked...
|
||||||
document.getElementById("upload").addEventListener("click", function() {
|
document.getElementById("upload").addEventListener("click", function() {
|
||||||
// get the text to add
|
// get the text to add
|
||||||
var text = document.getElementById("triggers").value;
|
var text = document.getElementById("triggers").value;
|
||||||
console.log(text);
|
console.log(text);
|
||||||
// build the app's text using a templated String
|
// build the app's text using a templated String
|
||||||
var app = text;
|
var app = text;
|
||||||
// send finished app (in addition to contents of app.json)
|
// send finished app (in addition to contents of app.json)
|
||||||
sendCustomizedApp({
|
sendCustomizedApp({
|
||||||
storage:[
|
storage:[
|
||||||
{name:"ha.trigger.json", url:"ha.trigger.json", content:app},
|
{name:"ha.trigger.json", url:"ha.trigger.json", content:app},
|
||||||
]
|
]
|
||||||
|
});
|
||||||
|
console.log("Sent ha.trigger.json!");
|
||||||
});
|
});
|
||||||
console.log("Sent ha.trigger.json!");
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"tags": "tool",
|
"tags": "tool",
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS2"],
|
||||||
"custom": "trigger.html",
|
"custom": "custom.html",
|
||||||
"screenshots": [
|
"screenshots": [
|
||||||
{"url":"screenshot.png"},
|
{"url":"screenshot.png"},
|
||||||
{"url":"screenshot_2.png"},
|
{"url":"screenshot_2.png"},
|
||||||
|
|
Loading…
Reference in New Issue