mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
socketclient.js: add backward compatibility for old module code
This commit is contained in:
parent
3f8363a5b2
commit
37ee0e568f
1 changed files with 5 additions and 1 deletions
|
@ -8,8 +8,12 @@ var MMSocket = function(moduleName) {
|
|||
self.moduleName = moduleName;
|
||||
|
||||
// Private Methods
|
||||
var base = "/";
|
||||
if (typeof config !== "undefined") {
|
||||
base = config.basePath;
|
||||
}
|
||||
self.socket = io("/" + self.moduleName, {
|
||||
path: config.basePath + "socket.io"
|
||||
path: base + "socket.io"
|
||||
});
|
||||
var notificationCallback = function() {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue