Skip to content

Commit

Permalink
fix: fixed work of multiple plugins installed simultaneously (#244)
Browse files Browse the repository at this point in the history
* fix: fixed work of multiple plugins installed simultaneously
  • Loading branch information
StyleT authored Jan 15, 2021
1 parent ea89aee commit 20bb974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ilc/server/pluginManager/PluginManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = class PluginManager {

for (let pluginPath of entries) {
const manifest = require(pluginPath);
const pSource = require(path.resolve(entries[0], '..', manifest.main));
const pSource = require(path.resolve(pluginPath, '..', manifest.main));

if (!Object.keys(TYPES).includes(pSource.type)) {
console.warn(`Plugin installed at path "${pluginPath}" of type "${pSource.type}" was ignored as ` +
Expand Down

0 comments on commit 20bb974

Please # to comment.