1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:42:26 +01:00

*** empty log message ***

This commit is contained in:
Kris Maglione
2008-09-18 14:10:02 +00:00
parent 7532d5b50b
commit d8741b5140
3 changed files with 15 additions and 20 deletions

View File

@@ -1080,7 +1080,9 @@ const liberator = (function () //{{{
{
var files = liberator.io.readDirectory(pluginDir.path);
liberator.log("Sourcing plugin directory...", 3);
files.sort(function (a, b) String(a.path).localeCompare(b.path)).forEach(function (file) {
files.sort(function (a, b) String.localeCompare(a.path, b.path))
.forEach(function (file)
{
if (!file.isDirectory() && /\.(js|vimp)$/i.test(file.path))
liberator.io.source(file.path, false);
});