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)
|
window.matrixWidget.setAlwaysOnScreen(true)
|
||||||
|
|
||||||
// Register all channels, recursively
|
// Register all channels, recursively
|
||||||
|
|
||||||
if(channelName.indexOf("/") != 0) {
|
if(channelName.indexOf("/") != 0) {
|
||||||
channelName = "/"+channelName;
|
channelName = "/"+channelName;
|
||||||
}
|
}
|
||||||
|
@ -913,11 +912,12 @@ window.onload = function () {
|
||||||
} else {
|
} else {
|
||||||
useJoinDialog = false
|
useJoinDialog = false
|
||||||
}
|
}
|
||||||
if (queryParams.tokens) {
|
|
||||||
ui.connectDialog.tokens(queryParams.tokens.split(","))
|
|
||||||
}
|
|
||||||
if (queryParams.token) {
|
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) {
|
if (queryParams.username) {
|
||||||
ui.connectDialog.username(queryParams.username)
|
ui.connectDialog.username(queryParams.username)
|
||||||
|
|
Loading…
Reference in a new issue