append / to the beginning of channelName if it is not present
This commit is contained in:
parent
f30f6db786
commit
a3312ec8ff
|
@ -382,6 +382,10 @@ class GlobalBindings {
|
|||
window.matrixWidget.setAlwaysOnScreen(true)
|
||||
|
||||
// Register all channels, recursively
|
||||
|
||||
if(channelName.indexOf("/") != 0) {
|
||||
channelName = "/"+channelName;
|
||||
}
|
||||
const registerChannel = (channel, channelPath) => {
|
||||
this._newChannel(channel)
|
||||
console.log(channelPath)
|
||||
|
|
Loading…
Reference in a new issue