Update UIPrompt.js

This commit is contained in:
jelveh
2026-05-06 15:33:13 -07:00
parent 5b65a6bc78
commit 2289d61d3c
+2 -2
View File
@@ -44,10 +44,10 @@ function UIPrompt (options) {
let h = '';
// message
h += `<div class="window-prompt-message">${options.message}</div>`;
h += `<div class="window-prompt-message">${html_encode(options.message)}</div>`;
// prompt
h += '<div class="window-alert-prompt" style="margin-top: 20px;">';
h += `<input type="text" class="prompt-input" placeholder="${options.placeholder ?? ''}" value="${options.defaultValue ?? options.value ?? ''}">`;
h += `<input type="text" class="prompt-input" placeholder="${html_encode(options.placeholder ?? '')}" value="${html_encode(options.defaultValue ?? options.value ?? '')}">`;
h += '</div>';
// buttons
if ( options.buttons && options.buttons.length > 0 ) {