add missing title to error pages

This commit is contained in:
Aine
2025-06-10 15:17:04 +03:00
parent ddf835c4d1
commit 680fa3c0ee
2 changed files with 2 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ export const getServerAndMediaIdFromMxcUrl = (mxcUrl: string): { serverName: str
const re = /^mxc:\/\/([^/]+)\/([\w-]+)$/;
const ret = re.exec(mxcUrl);
if (ret == null) {
return { serverName: "", mediaId: "" };
return { serverName: "", mediaId: "" };
}
const serverName = ret[1];
const mediaId = ret[2];