splitting tokens replaced by native parsing of urllib
This commit is contained in:
parent
ff89f541f7
commit
bf134819f9
10
app/index.js
10
app/index.js
|
@ -377,7 +377,6 @@ class GlobalBindings {
|
|||
window.matrixWidget.setAlwaysOnScreen(true)
|
||||
|
||||
// Register all channels, recursively
|
||||
|
||||
if(channelName.indexOf("/") != 0) {
|
||||
channelName = "/"+channelName;
|
||||
}
|
||||
|
@ -913,11 +912,12 @@ window.onload = function () {
|
|||
} else {
|
||||
useJoinDialog = false
|
||||
}
|
||||
if (queryParams.tokens) {
|
||||
ui.connectDialog.tokens(queryParams.tokens.split(","))
|
||||
}
|
||||
if (queryParams.token) {
|
||||
ui.connectDialog.tokens(queryParams.token.split(","))
|
||||
var tokens = queryParams.token
|
||||
if (!Array.isArray(tokens)) {
|
||||
tokens = [tokens]
|
||||
}
|
||||
ui.connectDialog.tokens(tokens)
|
||||
}
|
||||
if (queryParams.username) {
|
||||
ui.connectDialog.username(queryParams.username)
|
||||
|
|
Loading…
Reference in a new issue