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 }) },