mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 15:31:22 +02:00
add comment
This commit is contained in:
parent
10b19622db
commit
bc088e4472
@ -70,6 +70,8 @@ async function checkIsUrl(isUrl) {
|
|||||||
// js-sdk so probably as easy to duplicate it than to separate it out so we can reuse it
|
// js-sdk so probably as easy to duplicate it than to separate it out so we can reuse it
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
request(
|
request(
|
||||||
|
// also XXX: we don't really know whether to hit /v1 or /v2 for this: we
|
||||||
|
// probably want a /versions endpoint like the C/S API.
|
||||||
{ method: "GET", url: isUrl + '/_matrix/identity/api/v1' },
|
{ method: "GET", url: isUrl + '/_matrix/identity/api/v1' },
|
||||||
(err, response, body) => {
|
(err, response, body) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user