mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-24 22:26:42 +00:00
Update UIPrompt.js
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user