1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:52:26 +01:00

Dont source a plugin twice

This commit is contained in:
Kris Maglione
2008-10-11 16:40:08 +00:00
parent e07b6b8966
commit ddb2f171a8

View File

@@ -914,7 +914,7 @@ const liberator = (function () //{{{
let files = liberator.io.readDirectory(dir.path, true); let files = liberator.io.readDirectory(dir.path, true);
files.forEach(function (file) { 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 try
{ {