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
|
@ -3,10 +3,6 @@ import browser from '../../scripts/browser';
|
|||
import dialog from '../dialog/dialog';
|
||||
import globalize from '../../scripts/globalize';
|
||||
|
||||
function replaceAll(str, find, replace) {
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
function useNativeConfirm() {
|
||||
// webOS seems to block modals
|
||||
// Tizen 2.x seems to block modals
|
||||
|
@ -24,7 +20,7 @@ async function nativeConfirm(options) {
|
|||
};
|
||||
}
|
||||
|
||||
const text = replaceAll(options.text || '', '<br/>', '\n');
|
||||
const text = (options.text || '').replaceAll('<br/>', '\n');
|
||||
await appRouter.ready();
|
||||
const result = window.confirm(text);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue