mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 11:53:31 +02: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) };
|
loadplugins = { __proto__: loadplugins, value: args.map(Option.parseRegexp) };
|
||||||
|
|
||||||
dir.readDirectory(true).forEach(function (file) {
|
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)) {
|
&& !(!force && file.path in dactyl.pluginFiles && dactyl.pluginFiles[file.path] >= file.lastModifiedTime)) {
|
||||||
try {
|
try {
|
||||||
io.source(file.path);
|
io.source(file.path);
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ var IO = Module("io", {
|
|||||||
|
|
||||||
dactyl.echomsg(_("io.sourcing", filename.quote()), 2);
|
dactyl.echomsg(_("io.sourcing", filename.quote()), 2);
|
||||||
|
|
||||||
let uri = services.io.newFileURI(file);
|
let uri = file.URI;
|
||||||
|
|
||||||
let sourceJSM = function sourceJSM() {
|
let sourceJSM = function sourceJSM() {
|
||||||
context = contexts.Module(uri);
|
context = contexts.Module(uri);
|
||||||
|
|||||||
Reference in New Issue
Block a user