fix: mqtt keyboard state #65

This commit is contained in:
leukipp
2025-09-01 17:22:26 +02:00
parent b8f809c50e
commit 2737eabd8a
+1 -1
View File
@@ -756,7 +756,7 @@ const dbusCall = (path, method, values, callback = null) => {
try {
const output = cpr.execSync([cmd, ...args].join(" ").trim(), { encoding: "utf8" });
if (typeof callback === "function") {
callback(output.trim().replace(/\0/g, "").split("\n").slice(1).join("\n").trim(), null);
callback(output.trim().replace(/\0/g, ""), null);
}
} catch (error) {
console.error("Call D-Bus:", error.message);