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

28 lines
604 B
JavaScript
Raw Normal View History

2023-07-06 11:49:55 -04:00
import Guide from '../../components/guide/guide';
export default function (view, params, tabContent) {
let guideInstance;
const self = this;
self.renderTab = function () {
if (!guideInstance) {
2023-07-06 11:49:55 -04:00
guideInstance = new Guide({
element: tabContent,
serverId: ApiClient.serverId()
});
}
};
self.onShow = function () {
if (guideInstance) {
guideInstance.resume();
}
};
self.onHide = function () {
if (guideInstance) {
guideInstance.pause();
}
};
2020-08-04 09:03:02 +01:00
}