fix undefined _paq references

This commit is contained in:
Albert Yi
2018-11-09 15:49:35 -08:00
parent c8793457cb
commit 684e2bdbad
5 changed files with 6 additions and 6 deletions

View File

@@ -199,7 +199,7 @@
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>
<script>
window._paq = _paq || [];
window._paq = window._paq || [];
window._paq.push(["setCustomVariable", 1, "rating", '<%= j @post.rating %>', "page"]);
window._paq.push(["setCustomVariable", 2, "fileSize", <%= @post.file_size %>, "page"]);
window._paq.push(["setCustomVariable", 3, "sourceDomain", '<%= j @post.source_domain %>', "page"]);