Several improvements

This commit is contained in:
2026-08-03 16:04:17 -05:00
parent f94b08a4e6
commit a713af2fee
7 changed files with 102 additions and 31 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ module.exports = NodeHelper.create({
);
this.expressApp.get("/MMM-NextcloudCookbook/qr.svg", async (request, response, next) => {
try {
const url = `${request.protocol}://${request.get("host")}${this.config.controlPath}`;
const url = this.config.controlUrl
|| `${request.protocol}://${request.get("host")}${this.config.controlPath}`;
response.type("image/svg+xml").send(await QRCode.toString(url, { type: "svg", margin: 1 }));
} catch (error) {
next(error);