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:
parent
1f0760df09
commit
89e0515a15
31 changed files with 366 additions and 328 deletions
14
dashboard-ui/thirdparty/apiclient/apiclient.js
vendored
14
dashboard-ui/thirdparty/apiclient/apiclient.js
vendored
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue