Popup: do not require body text on input/confirm

569f9a209155da3f484408b7e05c245af2369c0e

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/popup.js+2 -2
@@ -75,7 +75,7 @@ const showPopupHelper = {
75 * Asynchronously displays an input popup with the given header and text, and returns the user's input.75 * Asynchronously displays an input popup with the given header and text, and returns the user's input.
76 *76 *
77 * @param {string?} header - The header text for the popup.77 * @param {string?} header - The header text for the popup.
78 * @param {string?} text - The main text for the popup.78 * @param {string?} [text] - The main text for the popup.
79 * @param {string} [defaultValue=''] - The default value for the input field.79 * @param {string} [defaultValue=''] - The default value for the input field.
80 * @param {PopupOptions} [popupOptions={}] - Options for the popup.80 * @param {PopupOptions} [popupOptions={}] - Options for the popup.
81 * @return {Promise<string?>} A Promise that resolves with the user's input.81 * @return {Promise<string?>} A Promise that resolves with the user's input.
@@ -94,7 +94,7 @@ const showPopupHelper = {
94 * Asynchronously displays a confirmation popup with the given header and text, returning the clicked result button value.94 * Asynchronously displays a confirmation popup with the given header and text, returning the clicked result button value.
95 *95 *
96 * @param {string?} header - The header text for the popup.96 * @param {string?} header - The header text for the popup.
97 * @param {string?} text - The main text for the popup.97 * @param {string?} [text] - The main text for the popup.
98 * @param {PopupOptions} [popupOptions={}] - Options for the popup.98 * @param {PopupOptions} [popupOptions={}] - Options for the popup.
99 * @return {Promise<POPUP_RESULT?>} A Promise that resolves with the result of the user's interaction.99 * @return {Promise<POPUP_RESULT?>} A Promise that resolves with the result of the user's interaction.
100 */100 */