untested WIP for supporting multiple widgets properly

This commit is contained in:
Matthew Hodgson 2017-08-18 18:40:00 +01:00
parent bb0845954d
commit d7f5295949
3 changed files with 9 additions and 3 deletions

View file

@ -76,10 +76,13 @@ class ScalarAuthClient {
return defer.promise;
}
getScalarInterfaceUrlForRoom(roomId, screen) {
getScalarInterfaceUrlForRoom(roomId, screen, id) {
var url = SdkConfig.get().integrations_ui_url;
url += "?scalar_token=" + encodeURIComponent(this.scalarToken);
url += "&room_id=" + encodeURIComponent(roomId);
if (id) {
url += '&integ_id=' + id;
}
if (screen) {
url += '&screen=' + encodeURIComponent(screen);
}