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

fix issue with certain controllers during page load

This commit is contained in:
dkanada 2020-06-06 18:34:45 +09:00
parent 680e562779
commit 523f060e99

View file

@ -23,7 +23,7 @@ define(['viewContainer', 'focusManager', 'queryString', 'layoutManager'], functi
if (typeof options.controllerFactory === 'function') {
var controller = new options.controllerFactory(newView, eventDetail.detail.params);
} else if (options.controllerFactory.default && typeof options.controllerFactory.default === 'function') {
} else if (options.controllerFactory && typeof options.controllerFactory.default === 'function') {
var controller = new options.controllerFactory.default(newView, eventDetail.detail.params);
}