Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix exception in markdown renderer
Rūdolfs Ošiņš committed 1 year ago
commit 82544a68bc9a3aac4b94a8d5bcd194db483b1eda
parent db79d36dee081da22d910722ce652b3779277793
1 file changed +5 -0
modified src/components/Markdown.svelte
@@ -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);