Procházet zdrojové kódy

Add badge links when adding XFN icons

Bee Hudson před 1 rokem
rodič
revize
8e229eb92c
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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]");
 
         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(' ');
             let rel = null;