mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:52:31 +02:00
Dont source a plugin twice
This commit is contained in:
1 parent
e07b6b8966
commit
ddb2f171a8
1 file changed
+1
-1
@@ -914,7 +914,7 @@ const liberator = (function () //{{{
|
||||
let files = liberator.io.readDirectory(dir.path, true);
|
||||
|
||||
files.forEach(function (file) {
|
||||
if (!file.isDirectory() && /\.(js|vimp)$/i.test(file.path))
|
||||
if (!file.isDirectory() && /\.(js|vimp)$/i.test(file.path) && !(file.path in liberator.pluginFiles))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user