Skip to content

Commit

Permalink
Add Sharethrough adapter (#865)
Browse files Browse the repository at this point in the history
* Rz/submit to prebid (#4)

Added Sharethrough Adapter

* fix warnings

* added beacons

* made compatible with chrome 37. other minor changes

* win beacon fired in analytics adapter

* specs for new analytics adapter

* add try catch blocks. misc refactor

* removed test page

* remove debugger

* refactor analytics adapter

* removed test endpoint

* analytics url parameter is empty

* removed bidwon listener on adapter

* removed analytics from package.json
  • Loading branch information
rizhang authored and protonate committed Jan 18, 2017
1 parent fa54115 commit c7f244c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/adapters/sharethrough.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var SharethroughAdapter = function SharethroughAdapter() {
const bids = params.bids;

addEventListener("message", _receiveMessage, false);

// cycle through bids
for (let i = 0; i < bids.length; i += 1) {
const bidRequest = bids[i];
Expand Down Expand Up @@ -124,4 +124,3 @@ var SharethroughAdapter = function SharethroughAdapter() {
};

module.exports = SharethroughAdapter;

2 changes: 1 addition & 1 deletion test/spec/adapters/sharethrough_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('sharethrough adapter', () => {
],
"stxUserId": ""
};

pbjs.strcallback(bidderReponse1);
pbjs.strcallback(bidderReponse2);

Expand Down

0 comments on commit c7f244c

Please sign in to comment.