1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix injecting of view with embedded script

This commit is contained in:
Dmitry Lyzo 2020-08-02 20:04:50 +03:00
parent ab9398344f
commit 7683622e5d

View file

@ -54,8 +54,8 @@ import 'css!components/viewManager/viewContainer';
if (currentPage) {
if (newViewInfo.hasScript && window.$) {
view = $(view).appendTo(mainAnimatedPages)[0];
mainAnimatedPages.removeChild(currentPage);
view = $(view).appendTo(mainAnimatedPages)[0];
} else {
mainAnimatedPages.replaceChild(view, currentPage);
}