mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix dependency loop
This commit is contained in:
parent
58b776dc43
commit
29b9dac5f4
1 changed files with 1 additions and 9 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue