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

remove all sync and convert buttons

This commit is contained in:
dkanada 2019-03-18 22:22:48 -07:00
parent 1ae37fea1b
commit 886dec1174
18 changed files with 62 additions and 1150 deletions

View file

@ -4,20 +4,14 @@
var connectionManager;
function getApiClient(serverId) {
if (connectionManager) {
return Promise.resolve(connectionManager.getApiClient(serverId));
}
//importScripts('serviceworker-cache-polyfill.js');
return Promise.reject();
}
function executeAction(action, data, serverId) {
return getApiClient(serverId).then(function (apiClient) {
switch (action) {
case 'cancel-install':
var id = data.id;
@ -32,7 +26,6 @@
}
self.addEventListener('notificationclick', function (event) {
var notification = event.notification;
notification.close();
@ -47,6 +40,5 @@
}
event.waitUntil(executeAction(action, data, serverId));
}, false);
})();