ref: verify hardware

This commit is contained in:
leukipp
2024-12-15 19:51:11 +01:00
parent 7f54996960
commit 8ac11731c8
3 changed files with 58 additions and 34 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ global.INTEGRATION = global.INTEGRATION || {
* @param {Object} args - The command-line arguments to customize the initialization process.
* @returns {boolean} Returns true if the initialization was successful.
*/
const init = (args) => {
const init = async (args) => {
if (!args.mqtt_url) {
return false;
}
@@ -196,7 +196,7 @@ const initRefresh = (client) => {
)
.on("message", (topic, message) => {
if (topic === `${root}/execute`) {
console.log("Refresh webview...");
console.log("Refreshing webview...");
hardware.setDisplayStatus("ON");
WEBVIEW.view.webContents.reloadIgnoringCache();
}