From 17ace8282b39b52f1daee386d597d2b35964b7ad Mon Sep 17 00:00:00 2001 From: Robonau <30987265+Robonau@users.noreply.github> Date: Mon, 11 Nov 2024 19:00:38 +0000 Subject: [PATCH] remove comments --- src/widgets/suwayomi/component.jsx | 3 --- src/widgets/suwayomi/proxy.js | 4 ---- src/widgets/suwayomi/widget.js | 1 - 3 files changed, 8 deletions(-) diff --git a/src/widgets/suwayomi/component.jsx b/src/widgets/suwayomi/component.jsx index 28ebec3e2..353b35ce4 100644 --- a/src/widgets/suwayomi/component.jsx +++ b/src/widgets/suwayomi/component.jsx @@ -28,9 +28,6 @@ export default function Component({ service }) { ); } - // i would like to be able to do something like this but i guess not - // service.description += suwayomiData.name; - return ( {suwayomiData.map((data) => ( diff --git a/src/widgets/suwayomi/proxy.js b/src/widgets/suwayomi/proxy.js index 1705f0b77..ee6ba8ae6 100644 --- a/src/widgets/suwayomi/proxy.js +++ b/src/widgets/suwayomi/proxy.js @@ -295,10 +295,6 @@ 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 - // } if (contentType) res.setHeader("Content-Type", contentType); return res.status(status).send(returnData); diff --git a/src/widgets/suwayomi/widget.js b/src/widgets/suwayomi/widget.js index 8bab4da00..e2ed509c6 100644 --- a/src/widgets/suwayomi/widget.js +++ b/src/widgets/suwayomi/widget.js @@ -1,4 +1,3 @@ -// import genericProxyHandler from "utils/proxy/handlers/generic"; import suwayomiProxyHandler from "./proxy"; const widget = {