From 39d1965f27080579fe6da2bdf2cef2d5df273740 Mon Sep 17 00:00:00 2001 From: Bryce Dorn Date: Thu, 15 Nov 2018 16:24:58 -0600 Subject: [PATCH] rm => --- src/helpers/TargetingPairs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helpers/TargetingPairs.js b/src/helpers/TargetingPairs.js index 486e4db..9b6653a 100644 --- a/src/helpers/TargetingPairs.js +++ b/src/helpers/TargetingPairs.js @@ -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) {