Fix adblock message (#653)

This commit is contained in:
Geometrically
2022-09-08 20:25:39 -07:00
committed by GitHub
parent cd2f2d42a3
commit b8d46e2863

View File

@@ -21,7 +21,7 @@
</a> </a>
</span> </span>
<a <a
href="http://carbonads.net/?utm_source=modrinthcom&amp;utm_medium=ad_via_link&amp;utm_campaign=in_unit&amp;utm_term=carbon" href="https://docs.modrinth.com/docs/details/carbon"
class="info-popup-poweredby" class="info-popup-poweredby"
target="_blank" target="_blank"
rel="noopener sponsored" rel="noopener sponsored"
@@ -54,7 +54,7 @@ export default {
}, },
methods: { methods: {
checkAds(tries) { checkAds(tries) {
if (!window._carbonads) { if (!document.getElementById('carbonads')) {
this.isBlocked = true this.isBlocked = true
if (tries < 1000) { if (tries < 1000) {