Only show the ad warning if the AdGlare ads are loading.

This commit is contained in:
ccd0 2016-11-11 22:01:05 -08:00
parent 3372af678e
commit 10c8be2969

View File

@ -113,7 +113,7 @@ Settings =
Enable it on boards.4chan.org in your browser's privacy settings (may be listed as part of "local data" or "cookies"). Enable it on boards.4chan.org in your browser's privacy settings (may be listed as part of "local data" or "cookies").
""" """
ads: (cb) -> ads: (cb) ->
$.onExists doc, '.ad-cnt, .adg-rects', (ad) -> $.onExists ad, 'img, iframe', -> $.onExists doc, '.adg-rects > .desktop', (ad) -> $.onExists ad, 'iframe', ->
url = Redirect.to 'thread', {boardID: 'qa', threadID: 362590} url = Redirect.to 'thread', {boardID: 'qa', threadID: 362590}
cb $.el 'li', cb $.el 'li',
<%= html( <%= html(