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

extract more scripts

This commit is contained in:
Luke Pulverenti 2015-06-09 01:56:46 -04:00
parent f64e0c7c53
commit d84e09e501
24 changed files with 238 additions and 90 deletions

View file

@ -1822,13 +1822,13 @@ var AppInfo = {};
return false;
});
require(['filesystem']);
if (Dashboard.isRunningInCordova()) {
requirejs(['thirdparty/cordova/connectsdk', 'scripts/registrationservices', 'thirdparty/cordova/volume', 'thirdparty/cordova/back']);
if ($.browser.android) {
requirejs(['thirdparty/cordova/android/androidcredentials', 'thirdparty/cordova/android/immersive', 'thirdparty/cordova/android/filesystem']);
} else {
requirejs(['thirdparty/cordova/filesystem']);
requirejs(['thirdparty/cordova/android/androidcredentials', 'thirdparty/cordova/android/immersive', 'thirdparty/cordova/android/mediasession']);
}
if ($.browser.safari) {
@ -1839,7 +1839,6 @@ var AppInfo = {};
if ($.browser.chrome) {
requirejs(['scripts/chromecast']);
}
requirejs(['thirdparty/filesystem']);
}
}
@ -1884,6 +1883,16 @@ var AppInfo = {};
define("localassetmanager", ["thirdparty/apiclient/localassetmanager"]);
}
if (Dashboard.isRunningInCordova() && $.browser.android) {
define("filesystem", ["thirdparty/cordova/android/filesystem"]);
}
else if (Dashboard.isRunningInCordova()) {
define("filesystem", ["thirdparty/cordova/filesystem"]);
}
else {
define("filesystem", ["thirdparty/filesystem"]);
}
define("connectservice", ["thirdparty/apiclient/connectservice"]);
//requirejs(['http://viblast.com/player/free-version/qy2fdwajo1/viblast.js']);