edit comment

This commit is contained in:
Robonau 2024-11-10 22:10:11 +00:00 committed by shamoon
parent aa427d1947
commit d3ceea48ed
2 changed files with 2 additions and 4 deletions

View File

@ -29,7 +29,7 @@ export default function Component({ service }) {
} }
// i would like to be able to do something like this but i guess not // 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 ( return (
<Container service={service}> <Container service={service}>

View File

@ -291,11 +291,9 @@ export default async function suwayomiProxyHandler(req, res) {
}; };
const returnData = widget.fields.map((name) => extractCounts(responseJSON, name, countsToExtract[name])); 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){ // if ("category" in responseJSON.data){
// returnData.name = responseJSON.data.category.name // 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); if (contentType) res.setHeader("Content-Type", contentType);