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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user