mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
default enable fields
This commit is contained in:
@@ -240,6 +240,11 @@ export default async function suwayomiProxyHandler(req, res) {
|
||||
}
|
||||
/** @type {{ fields: string[],category: string|number|undefined, type: keyof typeof widgets }} */
|
||||
const widget = await getServiceWidget(group, service);
|
||||
|
||||
if (widget.fields.length === 0) {
|
||||
widget.fields = ["download", "nondownload", "read", "unread"];
|
||||
}
|
||||
|
||||
widget.fields.length = 4;
|
||||
widget.fields = widget.fields.map((f) => f.toLowerCase());
|
||||
/** @type {Set<string>} */
|
||||
|
||||
Reference in New Issue
Block a user