mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
bugfixes
This commit is contained in:
@@ -41,7 +41,7 @@ Sockets.init = function(server) {
|
||||
files.splice(files.indexOf('index.js'), 1);
|
||||
|
||||
async.each(files, function(lib, next) {
|
||||
if (lib.slice(0, -3) === '.js') {
|
||||
if (lib.substr(lib.length - 3) === '.js') {
|
||||
lib = lib.slice(0, -3);
|
||||
Namespaces[lib] = require('./' + lib);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user