default enable fields
This commit is contained in:
parent
04a34af0d9
commit
6aa00c4efc
@ -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>} */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user