mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
make download function modular
This commit is contained in:
parent
ae57b97712
commit
4a50925c17
7 changed files with 118 additions and 111 deletions
|
@ -910,11 +910,6 @@ var Dashboard = {
|
|||
href: "autoorganizelog.html",
|
||||
pageIds: ['libraryFileOrganizerPage', 'libraryFileOrganizerSmartMatchPage', 'libraryFileOrganizerLogPage'],
|
||||
icon: 'folder'
|
||||
}, {
|
||||
name: Globalize.translate('TabGeneral'),
|
||||
href: "advanced.html",
|
||||
pageIds: ['advancedConfigurationPage'],
|
||||
icon: 'mode-edit'
|
||||
},
|
||||
{
|
||||
name: Globalize.translate('TabHosting'),
|
||||
|
@ -1536,7 +1531,7 @@ var AppInfo = {};
|
|||
// This doesn't perform well on iOS
|
||||
AppInfo.enableHeadRoom = !isIOS;
|
||||
|
||||
AppInfo.supportsDownloading = !(AppInfo.isNativeApp);
|
||||
AppInfo.supportsDownloading = !(AppInfo.isNativeApp && isIOS);
|
||||
|
||||
// This currently isn't working on android, unfortunately
|
||||
AppInfo.supportsFileInput = !(AppInfo.isNativeApp && isAndroid);
|
||||
|
@ -2123,6 +2118,12 @@ var AppInfo = {};
|
|||
} else {
|
||||
define("loading", [embyWebComponentsBowerPath + "/loading/loading-lite"], returnFirstDependency);
|
||||
}
|
||||
|
||||
if (Dashboard.isRunningInCordova() && browser.android) {
|
||||
define("fileDownloader", 'components/filedownloader', returnFirstDependency);
|
||||
} else {
|
||||
define("fileDownloader", 'cordova/android/filedownloader', returnFirstDependency);
|
||||
}
|
||||
}
|
||||
|
||||
function init(hostingAppInfo) {
|
||||
|
@ -2319,13 +2320,6 @@ var AppInfo = {};
|
|||
roles: 'admin'
|
||||
});
|
||||
|
||||
defineRoute({
|
||||
path: '/advanced.html',
|
||||
dependencies: [],
|
||||
autoFocus: false,
|
||||
roles: 'admin'
|
||||
});
|
||||
|
||||
defineRoute({
|
||||
path: '/appservices.html',
|
||||
dependencies: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue