1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 18:54:12 +01:00

Don't walk through dot-directories when loading plugins. Grr.

This commit is contained in:
Kris Maglione
2011-10-24 11:21:06 -04:00
parent 6ef8867d16
commit 9886875927
2 changed files with 4 additions and 2 deletions

View File

@@ -800,7 +800,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
loadplugins = { __proto__: loadplugins, value: args.map(Option.parseRegexp) };
dir.readDirectory(true).forEach(function (file) {
if (file.isFile() && loadplugins.getKey(file.path)
if (file.leafName[0] == ".")
;
else if (file.isFile() && loadplugins.getKey(file.path)
&& !(!force && file.path in dactyl.pluginFiles && dactyl.pluginFiles[file.path] >= file.lastModifiedTime)) {
try {
io.source(file.path);