splitting tokens replaced by native parsing of urllib
This commit is contained in:
parent
ff89f541f7
commit
bf134819f9
1 changed files with 6 additions and 6 deletions
12
app/index.js
12
app/index.js
|
@ -376,8 +376,7 @@ class GlobalBindings {
|
||||||
// Make sure we stay open if we're running as Matrix widget
|
// Make sure we stay open if we're running as Matrix widget
|
||||||
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