浏览代码

Adblocker statistics (pro feature)

Amauri CHAMPEAUX 10 年之前
父节点
当前提交
4e63203bc2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -289,9 +289,13 @@ var tarteaucitron = {
                             html += '       ' + tarteaucitron.lang.reload;
                             html += '   </span>';
                             html += '</div>';
+                            html += '<div id="tarteaucitronPremium"></div>';
                             div.id = 'tarteaucitronRoot';
                             body.appendChild(div, body);
                             div.innerHTML = html;
+                            tarteaucitron.pro('!adblocker=true');
+                        } else {
+                            tarteaucitron.pro('!adblocker=false');
                         }
                     }, 1500);
                 }