Skip to content

Commit 9b08b15

Browse files
grohm33harpere
authored andcommitted
minor safety check added (prebid#3543)
* 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
1 parent 520e0a8 commit 9b08b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/trionBidAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function setStorageData(key, item) {
147147

148148
export function acceptPostMessage(e) {
149149
var message = e.data || '';
150-
if (message.indexOf(BASE_KEY + 'userId') !== 0) {
150+
if (!message.indexOf || !message.split || message.indexOf(BASE_KEY + 'userId') !== 0) {
151151
return;
152152
}
153153
var intT = message.split(BASE_KEY + 'userId=')[1];

0 commit comments

Comments
 (0)