Update Link.js
This commit is contained in:
parent
86ea1b0aa8
commit
07918b406f
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,7 @@ export class Link {
|
||||||
if (!linkStr.startsWith("#/")) {
|
if (!linkStr.startsWith("#/")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
linkStr = linkStr.substr(2);
|
linkStr = linkStr.slice(2);
|
||||||
|
|
||||||
const linkStrMatrixUrl = fragment.substr(2).startsWith("matrix:") ? fragment.substr(2) : "matrix:"+fragment.substr(2);
|
const linkStrMatrixUrl = fragment.substr(2).startsWith("matrix:") ? fragment.substr(2) : "matrix:"+fragment.substr(2);
|
||||||
|
|
||||||
|
@ -135,6 +135,8 @@ export class Link {
|
||||||
return link;
|
return link;
|
||||||
} catch(e) {} // The fragment was no matrix-URL.
|
} catch(e) {} // The fragment was no matrix-URL.
|
||||||
|
|
||||||
|
linkStr = linkStr.substr(2);
|
||||||
|
|
||||||
const [identifier, eventId] = linkStr.split("/");
|
const [identifier, eventId] = linkStr.split("/");
|
||||||
|
|
||||||
let viaServers = [];
|
let viaServers = [];
|
||||||
|
|
Loading…
Reference in a new issue