Fix ad appearance at domain blockscout.com or subdomains

pull/5921/head
Viktor Baranov 2 years ago
parent 191bfb1d3c
commit 05d7c88b63
  1. 2
      apps/block_scout_web/assets/js/lib/ad.js

@ -9,7 +9,7 @@ function countImpressions (impressionUrl) {
function showAd () {
const domainName = window.location.hostname
if (domainName.endsWith('blockscout.com')) {
if (domainName === 'blockscout.com' || domainName.endsWith('.blockscout.com')) {
$('.js-ad-dependant-mb-2').addClass('mb-2')
$('.js-ad-dependant-mb-3').addClass('mb-3')
$('.js-ad-dependant-mb-5-reverse').removeClass('mb-5')

Loading…
Cancel
Save