Fix bugs
This commit is contained in:
parent
6c7566e790
commit
8c80088192
3 changed files with 5 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ module.exports = function (Server) {
|
|||
loaded: false
|
||||
};
|
||||
|
||||
if(Server.channelLoaded(name))
|
||||
if(Server.isChannelLoaded(name))
|
||||
data = getChannelData(Server.getChannel(name));
|
||||
|
||||
res.type("application/json");
|
||||
|
|
|
|||
|
|
@ -285,7 +285,6 @@ User.prototype.initCallbacks = function () {
|
|||
});
|
||||
|
||||
self.socket.on("jumpTo", function (data) {
|
||||
data = (typeof data !== "object") ? {} : data;
|
||||
if (self.inChannel()) {
|
||||
self.channel.tryJumpTo(self, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue