Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix exception in markdown renderer
✓ CI success Rūdolfs Ošiņš committed 1 year ago
commit 0f02d4407a05dcaa9573cd517ccc92689841f1fb
parent 31b2d9a9e13ab63d21217263fe7bd710d6fdfe68
1 passed (1 total) View logs
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);