mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix reloading plugin pages
This commit is contained in:
parent
5f9f5f3ccf
commit
37927a9a1a
1 changed files with 8 additions and 0 deletions
|
@ -102,8 +102,16 @@ define([], function () {
|
|||
}
|
||||
}
|
||||
|
||||
function replaceAll(str, find, replace) {
|
||||
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
function parseHtml(html) {
|
||||
|
||||
html = replaceAll(html, '<!--<script', '<script');
|
||||
html = replaceAll(html, '</script>-->', '</script>');
|
||||
|
||||
var wrapper = document.createElement('div');
|
||||
wrapper.innerHTML = html;
|
||||
return wrapper.querySelector('div[data-role="page"]');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue