Update _venera_.js

This commit is contained in:
ynyx631
2025-11-02 16:00:38 +08:00
committed by GitHub
parent 848809a645
commit e18068fd8a

View File

@@ -1334,7 +1334,7 @@ let UI = {
* Show an input dialog * Show an input dialog
* @param title {string} * @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 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. * @param image {string | ArrayBuffer | null | undefined} - Since 1.4.6, you can pass an image url to show an image in the dialog. Since 1.5.3, you can also pass an ArrayBuffer to show a custom image.
* @returns {Promise<string | null>} - The input value. If the dialog is canceled, return null. * @returns {Promise<string | null>} - The input value. If the dialog is canceled, return null.
*/ */
showInputDialog: (title, validator, image) => { showInputDialog: (title, validator, image) => {
@@ -1403,7 +1403,7 @@ let APP = {
* Set clipboard text * Set clipboard text
* @param text {string} * @param text {string}
* @returns {Promise<void>} * @returns {Promise<void>}
* *
* @since 1.3.4 * @since 1.3.4
*/ */
function setClipboard(text) { function setClipboard(text) {
@@ -1416,7 +1416,7 @@ function setClipboard(text) {
/** /**
* Get clipboard text * Get clipboard text
* @returns {Promise<string>} * @returns {Promise<string>}
* *
* @since 1.3.4 * @since 1.3.4
*/ */
function getClipboard() { function getClipboard() {