From c03f1c41d49a7668c09fffa165d613886ec321cc Mon Sep 17 00:00:00 2001 From: nyne Date: Tue, 22 Jul 2025 17:53:10 +0800 Subject: [PATCH] Update venera api. --- _venera_.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_venera_.js b/_venera_.js index 0f3c3fc..3f0f44f 100644 --- a/_venera_.js +++ b/_venera_.js @@ -1340,13 +1340,15 @@ let UI = { * Show an input dialog * @param title {string} * @param validator {(string) => string | null | undefined} - A function that validates the input. If the function returns a string, the dialog will show the error message. + * @param image {string?} - Available since 1.4.6. An optional image to show in the dialog. You can use this to show a captcha. * @returns {Promise} - The input value. If the dialog is canceled, return null. */ - showInputDialog: (title, validator) => { + showInputDialog: (title, validator, image) => { return sendMessage({ method: 'UI', function: 'showInputDialog', title: title, + image: image, validator: validator }) },