mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
sort installed plugins
on some systems you cannot rely on file sorting, so plugins are loaded in different order on some systems (ubuntu vs. osx)
This commit is contained in:
parent
eed18feed7
commit
940d35ee49
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ function readInstalled_ (folder, parent, name, reqver, depth, maxDepth, cb) {
|
|||
fs.readdir(path.resolve(folder, "node_modules"), function (er, i) {
|
||||
// error indicates that nothing is installed here
|
||||
if (er) i = []
|
||||
installed = i.filter(function (f) { return f.charAt(0) !== "." })
|
||||
installed = i.sort().filter(function (f) { return f.charAt(0) !== "." })
|
||||
next()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue