From 29b9dac5f4aae7c21364ccef26ddd90635c4e2bc Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Wed, 20 May 2020 00:35:19 +0300 Subject: [PATCH] Fix dependency loop --- src/components/pluginManager.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/pluginManager.js b/src/components/pluginManager.js index 8ccb8b1361..6cb56d767b 100644 --- a/src/components/pluginManager.js +++ b/src/components/pluginManager.js @@ -1,4 +1,4 @@ -define(['events', 'globalize', 'appRouter'], function (events, globalize, appRouter) { +define(['events', 'globalize'], function (events, globalize) { 'use strict'; // TODO: replace with each plugin version @@ -71,14 +71,6 @@ define(['events', 'globalize', 'appRouter'], function (events, globalize, appRou 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('\\')); plugin.baseUrl = pluginSpec.substring(0, separatorIndex);