From d3ceea48ed862b51b41d8361b409c901c7e7b1db Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Sun, 10 Nov 2024 22:10:11 +0000 Subject: [PATCH] edit comment --- src/widgets/suwayomi/component.jsx | 2 +- src/widgets/suwayomi/proxy.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/widgets/suwayomi/component.jsx b/src/widgets/suwayomi/component.jsx index f2455ef15..28ebec3e2 100644 --- a/src/widgets/suwayomi/component.jsx +++ b/src/widgets/suwayomi/component.jsx @@ -29,7 +29,7 @@ export default function Component({ service }) { } // i would like to be able to do something like this but i guess not - // widget.service_name += suwayomiData.name ? `-${suwayomiData.name}` : ""; + // service.description += suwayomiData.name; return ( diff --git a/src/widgets/suwayomi/proxy.js b/src/widgets/suwayomi/proxy.js index 1f8d7833a..ba85b6c63 100644 --- a/src/widgets/suwayomi/proxy.js +++ b/src/widgets/suwayomi/proxy.js @@ -291,11 +291,9 @@ export default async function suwayomiProxyHandler(req, res) { }; const returnData = widget.fields.map((name) => extractCounts(responseJSON, name, countsToExtract[name])); - + // this would be used for setting the service.description if it was possible // if ("category" in responseJSON.data){ // returnData.name = responseJSON.data.category.name - // // i would like to be able to do something like this but i guess not - // // widget.service_name += `-${responseJSON.data.category.name}`; // } if (contentType) res.setHeader("Content-Type", contentType);