Skip to content

Commit

Permalink
minor safety check added (#3543)
Browse files Browse the repository at this point in the history
* Adding files associated with the trion adapter update to the newest prebid version(1.0).

* Updating pull request with safer checks for user sync and general clean up/consistency of tests.

* removing a call to bidder code for pull request review.  also removing the test that requires it

* there were some changes to the bid factory after our initial release that we didn't account for.  Changing adapter to account for response body and required params.

* Revert "there were some changes to the bid factory after our initial release that we didn't account for.  Changing adapter to account for response body and required params."

This reverts commit 324d157.

* there were some changes to the bid factory after our initial release that we didn't account for.  Changing adapter to account for response body and required params.

* adding safety checks to Trion adapter
  • Loading branch information
grohm33 authored and harpere committed Feb 14, 2019
1 parent 520e0a8 commit 9b08b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/trionBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function setStorageData(key, item) {

export function acceptPostMessage(e) {
var message = e.data || '';
if (message.indexOf(BASE_KEY + 'userId') !== 0) {
if (!message.indexOf || !message.split || message.indexOf(BASE_KEY + 'userId') !== 0) {
return;
}
var intT = message.split(BASE_KEY + 'userId=')[1];
Expand Down

0 comments on commit 9b08b15

Please sign in to comment.