diff --git a/src/scripts/site.js b/src/scripts/site.js index b56e9410a0..1ab29ebbe1 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -521,13 +521,13 @@ var AppInfo = {}; } require(["apphost", "css!css/librarybrowser"], function (appHost) { - loadPlugins([], appHost, browser).then(function () { + loadPlugins(appHost, browser).then(function () { onAppReady(browser); }); }); } - function loadPlugins(externalPlugins, appHost, browser, shell) { + function loadPlugins(appHost, browser, shell) { console.log("Loading installed plugins"); var list = [ "components/playback/playaccessvalidation", @@ -546,8 +546,8 @@ var AppInfo = {}; } } - for (var index = 0, length = externalPlugins.length; index < length; index++) { - list.push(externalPlugins[index]); + if (window.NativeShell) { + list = list.concat(window.NativeShell.getPlugins()); } return new Promise(function (resolve, reject) {