mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Merge pull request #1280 from dmitrylyzo/fix-dependency-loop
Fix dependency loop
This commit is contained in:
commit
0155059778
@ -1,4 +1,4 @@
|
|||||||
define(['loading', 'globalize', 'events', 'viewManager', 'layoutManager', 'skinManager', 'pluginManager', 'backdrop', 'browser', 'page', 'appSettings', 'apphost', 'connectionManager'], function (loading, globalize, events, viewManager, layoutManager, skinManager, pluginManager, backdrop, browser, page, appSettings, appHost, connectionManager) {
|
define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdrop', 'browser', 'page', 'appSettings', 'apphost', 'connectionManager'], function (loading, globalize, events, viewManager, skinManager, backdrop, browser, page, appSettings, appHost, connectionManager) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var appRouter = {
|
var appRouter = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
define(['events', 'globalize', 'appRouter'], function (events, globalize, appRouter) {
|
define(['events', 'globalize'], function (events, globalize) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// TODO: replace with each plugin version
|
// TODO: replace with each plugin version
|
||||||
@ -71,14 +71,6 @@ define(['events', 'globalize', 'appRouter'], function (events, globalize, appRou
|
|||||||
|
|
||||||
plugin.installUrl = pluginSpec;
|
plugin.installUrl = pluginSpec;
|
||||||
|
|
||||||
var urlLower = pluginSpec.toLowerCase();
|
|
||||||
if (urlLower.indexOf('http:') === -1 && urlLower.indexOf('https:') === -1 && urlLower.indexOf('file:') === -1) {
|
|
||||||
if (pluginSpec.indexOf(appRouter.baseUrl()) !== 0) {
|
|
||||||
|
|
||||||
pluginSpec = appRouter.baseUrl() + '/' + pluginSpec;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var separatorIndex = Math.max(pluginSpec.lastIndexOf('/'), pluginSpec.lastIndexOf('\\'));
|
var separatorIndex = Math.max(pluginSpec.lastIndexOf('/'), pluginSpec.lastIndexOf('\\'));
|
||||||
plugin.baseUrl = pluginSpec.substring(0, separatorIndex);
|
plugin.baseUrl = pluginSpec.substring(0, separatorIndex);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdrop', 'globalize', 'require', 'appSettings'], function (appHost, userSettings, browser, events, pluginManager, backdrop, globalize, require, appSettings) {
|
define(['apphost', 'userSettings', 'browser', 'events', 'backdrop', 'globalize', 'require', 'appSettings'], function (appHost, userSettings, browser, events, backdrop, globalize, require, appSettings) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var themeStyleElement;
|
var themeStyleElement;
|
||||||
|
Loading…
Reference in New Issue
Block a user