Update api

This commit is contained in:
2025-01-18 16:55:04 +08:00
parent 9284a398df
commit 643e0a087b
2 changed files with 59 additions and 0 deletions

View File

@@ -745,6 +745,12 @@ class NewComicSource extends ComicSource {
title: "Setting4",
type: "callback",
buttonText: "Click me",
/**
* callback function
*
* If the callback function returns a Promise, the button will show a loading indicator until the promise is resolved.
* @returns {void | Promise<any>}
*/
callback: () => {
// do something
}