瀏覽代碼

Add badge links when adding XFN icons

Bee Hudson 1 年之前
父節點
當前提交
8e229eb92c
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;