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
|
@ -112,14 +112,11 @@ import Dashboard from '../utils/dashboard';
|
|||
}
|
||||
}
|
||||
|
||||
function replaceAll(str, find, replace) {
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
function parseHtml(html, hasScript) {
|
||||
if (hasScript) {
|
||||
html = replaceAll(html, '\x3c!--<script', '<script');
|
||||
html = replaceAll(html, '</script>--\x3e', '</script>');
|
||||
html = html
|
||||
.replaceAll('\x3c!--<script', '<script')
|
||||
.replaceAll('</script>--\x3e', '</script>');
|
||||
}
|
||||
|
||||
const wrapper = document.createElement('div');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue