Skip to content

Commit

Permalink
rm =>
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedorn committed Nov 15, 2018
1 parent 8cedb9e commit 39d1965
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helpers/TargetingPairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ var TargetingPairs = {
*/
getArticlePosition: function (adContainer, kinjaMeta) {
if (document && adContainer && kinjaMeta.pageType === "permalink" && !(kinjaMeta.post && kinjaMeta.post.isFeatured)) {
var readingListPostIds = Array.from(document.getElementsByClassName('js_reading-list-item')).map(post => post.dataset.postId);

var readingListPostIds = Array.from(document.getElementsByClassName('js_reading-list-item')).map(function(post) {
return post.dataset.postId;
});

if (readingListPostIds.length > 0) {
var readingListItem = adContainer.closest('.js_reading-list-item');
if (readingListItem) {
Expand Down

0 comments on commit 39d1965

Please sign in to comment.