Skip to content

Node.js based forum software built for the modern web

moving socket.IO client lib to top of file, just in case

Julian Lam5553e07bbd9e
diff --git a/src/meta.js b/src/meta.js
index 2c3b6c66f3..5520cc4a58 100644
--- a/src/meta.js
+++ b/src/meta.js
@@ -276,7 +276,7 @@ var fs = require('fs'),
Meta.js.scripts = jsPaths.filter(function(path) { return path !== null });
// Add socket.io client library
- Meta.js.scripts.push(path.join(__dirname, '../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js'));
+ Meta.js.scripts.unshift(path.join(__dirname, '../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js'));
// Add plugin scripts
Meta.js.scripts = Meta.js.scripts.concat(plugins.clientScripts);