Browse Source

Add badge links when adding XFN icons

Bee Hudson 1 year ago
parent
commit
8e229eb92c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      static/js/Bumble.js

+ 3 - 0
static/js/Bumble.js

@@ -224,6 +224,9 @@ Bumble.XFN = {
         const links = document.querySelectorAll("a[rel]");
         const links = document.querySelectorAll("a[rel]");
 
 
         for(const link of links) {
         for(const link of links) {
+            // Ignore links that only contain images
+            if (link.childNodes.length == 1 && link.lastChild instanceof HTMLImageElement) { continue; }
+
             const rels = link.rel.split(' ');
             const rels = link.rel.split(' ');
             let rel = null;
             let rel = null;