mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 19:27:58 +01:00
only source JavaScript files (*.js) from the plugin directory on startup
This commit is contained in:
@@ -761,7 +761,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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user