Skip to content

Commit

Permalink
Fix for IE 11.0.0 and Safari 8.0.8 - includes()
Browse files Browse the repository at this point in the history
Use core-js includes function for array
  • Loading branch information
AlessandroDG committed Nov 2, 2018
1 parent 2260902 commit 215bc0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/rivrAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ajax} from 'src/ajax';
import includes from 'core-js/library/fn/array/includes';
import adapter from 'src/AnalyticsAdapter';
import CONSTANTS from 'src/constants.json';
import adaptermanager from 'src/adaptermanager';
Expand Down Expand Up @@ -491,7 +492,7 @@ function getAllUnrespondedBidRequests() {
let respondedBidIds = getAllRespondedBidIds();
let bidRequests = rivrAnalytics.context.auctionObject.bidRequests;
let allNotRespondedBidRequests = bidRequests.reduce((cache, requestBidder) => {
let notRespondedBids = requestBidder.bids.filter((bid) => !respondedBidIds.includes(bid.bidId));
let notRespondedBids = requestBidder.bids.filter((bid) => !includes(respondedBidIds, bid.bidId));
notRespondedBids.forEach((bid) => bid.start = requestBidder.start);
return cache.concat(notRespondedBids);
}, []);
Expand Down

0 comments on commit 215bc0f

Please sign in to comment.