fix indentation and remove debug log
This commit is contained in:
parent
1315052756
commit
5b0e62ef3c
|
@ -362,7 +362,7 @@ class GlobalBindings {
|
||||||
this.connector.connect(`wss://${host}:${port}`, {
|
this.connector.connect(`wss://${host}:${port}`, {
|
||||||
username: username,
|
username: username,
|
||||||
password: password,
|
password: password,
|
||||||
tokens: tokens
|
tokens: tokens
|
||||||
}).done(client => {
|
}).done(client => {
|
||||||
log('Connected!')
|
log('Connected!')
|
||||||
|
|
||||||
|
@ -378,12 +378,11 @@ class GlobalBindings {
|
||||||
|
|
||||||
// Register all channels, recursively
|
// Register all channels, recursively
|
||||||
|
|
||||||
if(channelName.indexOf("/") != 0) {
|
if(channelName.indexOf("/") != 0) {
|
||||||
channelName = "/"+channelName;
|
channelName = "/"+channelName;
|
||||||
}
|
}
|
||||||
const registerChannel = (channel, channelPath) => {
|
const registerChannel = (channel, channelPath) => {
|
||||||
this._newChannel(channel)
|
this._newChannel(channel)
|
||||||
console.log(channelPath)
|
|
||||||
if(channelPath === channelName) {
|
if(channelPath === channelName) {
|
||||||
console.log(channel)
|
console.log(channel)
|
||||||
client.self.setChannel(channel)
|
client.self.setChannel(channel)
|
||||||
|
|
Loading…
Reference in a new issue