mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
Throw capability request exception.
This commit is contained in:
parent
de33294000
commit
53b716bad6
@ -277,8 +277,7 @@ export default class WidgetMessaging extends MatrixPostMessageApi {
|
|||||||
return this.exec({
|
return this.exec({
|
||||||
api: OUTBOUND_API_NAME,
|
api: OUTBOUND_API_NAME,
|
||||||
action: "capabilities",
|
action: "capabilities",
|
||||||
}).then((response) => response.capabilities)
|
}).then((response) => response.capabilities);
|
||||||
.catch((error) => new Error("Failed to get capabilities: " + error.message));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user