splitting tokens replaced by native parsing of urllib

This commit is contained in:
encrypt 2020-03-26 22:36:13 +01:00
parent ff89f541f7
commit bf134819f9

View file

@ -376,8 +376,7 @@ class GlobalBindings {
// Make sure we stay open if we're running as Matrix widget
window.matrixWidget.setAlwaysOnScreen(true)
// Register all channels, recursively
// 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)