mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix exception in markdown renderer
This commit is contained in:
committed by
Sebastian Martinez
parent
db79d36dee
commit
82544a68bc
@@ -47,6 +47,11 @@
|
||||
content;
|
||||
|
||||
void tick().then(() => {
|
||||
// Don't run this if the component hasn't mounted yet.
|
||||
if (container === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const e of container.querySelectorAll("a")) {
|
||||
try {
|
||||
const url = new URL(e.href);
|
||||
|
||||
Reference in New Issue
Block a user