mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added getPlugins from NativeShellAPI
This commit is contained in:
parent
de0b26fd61
commit
8b09235e46
1 changed files with 4 additions and 4 deletions
|
@ -521,13 +521,13 @@ var AppInfo = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
require(["apphost", "css!css/librarybrowser"], function (appHost) {
|
require(["apphost", "css!css/librarybrowser"], function (appHost) {
|
||||||
loadPlugins([], appHost, browser).then(function () {
|
loadPlugins(appHost, browser).then(function () {
|
||||||
onAppReady(browser);
|
onAppReady(browser);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadPlugins(externalPlugins, appHost, browser, shell) {
|
function loadPlugins(appHost, browser, shell) {
|
||||||
console.log("Loading installed plugins");
|
console.log("Loading installed plugins");
|
||||||
var list = [
|
var list = [
|
||||||
"components/playback/playaccessvalidation",
|
"components/playback/playaccessvalidation",
|
||||||
|
@ -546,8 +546,8 @@ var AppInfo = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var index = 0, length = externalPlugins.length; index < length; index++) {
|
if (window.NativeShell) {
|
||||||
list.push(externalPlugins[index]);
|
list = list.concat(window.NativeShell.getPlugins());
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue