1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 18:44:10 +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);

View File

@@ -166,7 +166,7 @@ var IO = Module("io", {
dactyl.echomsg(_("io.sourcing", filename.quote()), 2);
let uri = services.io.newFileURI(file);
let uri = file.URI;
let sourceJSM = function sourceJSM() {
context = contexts.Module(uri);