mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
1 line
442 B
JavaScript
1 line
442 B
JavaScript
define(["syncJobList"],function(syncJobList){"use strict";return function(view,params){var mode="offline",apiClient=ApiClient,mySyncJobList=new syncJobList({isLocalSync:"offline"===mode,serverId:apiClient.serverId(),userId:"offline"===mode?null:apiClient.getCurrentUserId(),element:view.querySelector(".syncActivity"),mode:mode});view.addEventListener("viewdestroy",function(){mySyncJobList&&(mySyncJobList.destroy(),mySyncJobList=null)})}}); |