From 122555156fdd558f23907a6143b3ab8c96d08bb9 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Wed, 5 Sep 2018 14:33:22 -0700 Subject: [PATCH] Fix ad block nag project issue (#4596) --- readthedocs/core/static-src/core/js/doc-embed/sponsorship.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/core/static-src/core/js/doc-embed/sponsorship.js b/readthedocs/core/static-src/core/js/doc-embed/sponsorship.js index 647ee0a3f44..bff2f9cd6e6 100644 --- a/readthedocs/core/static-src/core/js/doc-embed/sponsorship.js +++ b/readthedocs/core/static-src/core/js/doc-embed/sponsorship.js @@ -280,7 +280,7 @@ function init() { error: function () { console.error('Error loading Read the Docs promo'); - if (!rtddata.ad_free && rtd.api_host === 'https://readthedocs.org' && detect_adblock()) { + if (!rtd.ad_free && rtd.api_host === 'https://readthedocs.org' && detect_adblock()) { adblock_admonition(); adblock_nag(); }