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

lazy load scripts

This commit is contained in:
Luke Pulverenti 2015-05-16 15:09:02 -04:00
parent 1f0760df09
commit 89e0515a15
31 changed files with 366 additions and 328 deletions

View file

@ -28,6 +28,8 @@
var webSocket;
var serverInfo;
self.enableAppStorePolicy = false;
/**
* Gets the server address.
*/
@ -1688,6 +1690,10 @@
options = options || {};
options.PackageType = "UserInstalled";
if (self.enableAppStorePolicy) {
options.IsAppStoreEnabled = true;
}
var url = self.getUrl("Packages", options);
return self.ajax({
@ -2138,7 +2144,13 @@
*/
self.getInstalledPlugins = function () {
var url = self.getUrl("Plugins");
var options = {};
if (self.enableAppStorePolicy) {
options.IsAppStoreEnabled = true;
}
var url = self.getUrl("Plugins", options);
return self.ajax({
type: "GET",