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

Remove unused sync code

This commit is contained in:
Niels van Velzen 2024-01-06 19:34:34 +01:00
parent 78d8253f13
commit 9eeec9270d
6 changed files with 0 additions and 41 deletions

View file

@ -421,24 +421,10 @@ function showBySelector(selector, show) {
function updateLibraryMenu(user) {
if (!user) {
showBySelector('.libraryMenuDownloads', false);
showBySelector('.lnkSyncToOtherDevices', false);
showBySelector('.userMenuOptions', false);
return;
}
if (user.Policy.EnableContentDownloading) {
showBySelector('.lnkSyncToOtherDevices', true);
} else {
showBySelector('.lnkSyncToOtherDevices', false);
}
if (user.Policy.EnableContentDownloading && appHost.supports('sync')) {
showBySelector('.libraryMenuDownloads', true);
} else {
showBySelector('.libraryMenuDownloads', false);
}
const userId = Dashboard.getCurrentUserId();
const apiClient = getCurrentApiClient();