mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 21:32:51 +00:00
Refactor video UI component orchestration
This commit is contained in:
1 parent
f579c965a7
commit
ad58ff04a3
5 files changed
+390
-88
No files matched your search
+2
-3
@@ -53,9 +53,8 @@ export async function loadView(viewUrl) {
|
||||
export const viewInitRegistry = {
|
||||
"most-recent-videos": () => {
|
||||
if (window.app && window.app.loadVideos) {
|
||||
window.app.videoList = document.getElementById("videoList");
|
||||
if (window.app.attachVideoListHandler) {
|
||||
window.app.attachVideoListHandler();
|
||||
if (typeof window.app.mountVideoListView === "function") {
|
||||
window.app.mountVideoListView();
|
||||
}
|
||||
window.app.loadVideos();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user