jellyfin-web/dashboard-ui/scripts/managedownloads.js
2018-09-12 19:26:21 +02:00

1 line
358 B
JavaScript

define(["syncJobList"],function(syncJobList){"use strict";return function(view,params){var apiClient=ApiClient,mySyncJobList=new syncJobList({serverId:apiClient.serverId(),userId:null,element:view.querySelector(".syncActivity"),mode:"download"});view.addEventListener("viewdestroy",function(){mySyncJobList&&(mySyncJobList.destroy(),mySyncJobList=null)})}});