I think I need to give full domain?
This commit is contained in:
parent
4ff6404958
commit
6cf9d622cb
@ -23,12 +23,6 @@ const config = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onload = function() {
|
|
||||||
psState.init(config);
|
|
||||||
comms.init(psState, config);
|
|
||||||
refreshState(window.document, psState);
|
|
||||||
};
|
|
||||||
|
|
||||||
function refreshState(doc, state) {
|
function refreshState(doc, state) {
|
||||||
const igniterStatus = doc.getElementById("igniter-status");
|
const igniterStatus = doc.getElementById("igniter-status");
|
||||||
const exhaustStatus = doc.getElementById("exhaust-status");
|
const exhaustStatus = doc.getElementById("exhaust-status");
|
||||||
@ -53,3 +47,9 @@ function togglePower(element) {
|
|||||||
psState[element].power(comms);
|
psState[element].power(comms);
|
||||||
refreshState(window.document, psState);
|
refreshState(window.document, psState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.onload = function() {
|
||||||
|
psState.init(config);
|
||||||
|
comms.init(psState, config);
|
||||||
|
refreshState(window.document, psState);
|
||||||
|
};
|
@ -77,7 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<script src="https://unpkg.com/mqtt/dist/mqtt.js"></script>
|
<script src="https://unpkg.com/mqtt/dist/mqtt.js"></script>
|
||||||
<script type="module" src="./assets/hestia.js"></script>
|
<script type="module" src="https://ps.3411.one/assets/hestia.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user