Skip to content

Commit 37ee0e5

Browse files
committed
socketclient.js: add backward compatibility for old module code
1 parent 3f8363a commit 37ee0e5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

js/socketclient.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ var MMSocket = function(moduleName) {
88
self.moduleName = moduleName;
99

1010
// Private Methods
11+
var base = "/";
12+
if (typeof config !== "undefined") {
13+
base = config.basePath;
14+
}
1115
self.socket = io("/" + self.moduleName, {
12-
path: config.basePath + "socket.io"
16+
path: base + "socket.io"
1317
});
1418
var notificationCallback = function() {};
1519

0 commit comments

Comments
 (0)