mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove string replaceAll implementations
This commit is contained in:
parent
b008f2db30
commit
8536fe4610
6 changed files with 8 additions and 38 deletions
|
@ -12,10 +12,6 @@ import '../formdialog.scss';
|
|||
import template from './prompt.template.html';
|
||||
|
||||
export default (() => {
|
||||
function replaceAll(str, find, replace) {
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
function setInputProperties(dlg, options) {
|
||||
const txtInput = dlg.querySelector('#txtInput');
|
||||
|
||||
|
@ -105,7 +101,7 @@ export default (() => {
|
|||
};
|
||||
}
|
||||
|
||||
const label = replaceAll(options.label || '', '<br/>', '\n');
|
||||
const label = (options.label || '').replaceAll('<br/>', '\n');
|
||||
const result = prompt(label, options.text || '');
|
||||
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue