From 81a8ebecb6dd02ee76520f10586cfd94e4cd01c0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 28 Oct 2007 07:09:05 +0000 Subject: [PATCH] only source JavaScript files (*.js) from the plugin directory on startup --- content/vimperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/vimperator.js b/content/vimperator.js index c525d56c..2d1dddc9 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -654,7 +654,7 @@ const vimperator = (function() //{{{ var files = vimperator.io.readDirectory(plugin_dir.path); vimperator.log("Sourcing plugin directory...", 3); files.forEach(function(file) { - if (!file.isDirectory()) + if (!file.isDirectory() && /\.js$/.test(file.path)) vimperator.source(file.path, false); }); }