Fix adblock pixel frame selector.

This commit is contained in:
Max Goodman
2013-03-28 14:08:36 -07:00
committed by Neil Williams
parent 0561be43b7
commit 767597c3c8

View File

@@ -35,7 +35,7 @@
tracker_url = tracking.get_impression_pixel_url("adblock")
%>
$(function() {
var ad = $("#ad-frame");
var ad = $("#${thing.frame_id}");
if(!ad.length || ad.height() == 0 || ad.width() == 0 || ad.offset().left == 0) {
$(".footer").append("<img alt='' src='${unsafe(tracker_url)}&random=" +
Math.random()*10000000000000000 + "'/>");