Browse Source

Add badge links when adding XFN icons

Bee Hudson 1 năm trước cách đây
mục cha
commit
8e229eb92c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;