You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When __uspapi is provided through an iframe / __uspapiLocator, the consent management module installs __uspapi that communicates through the message api.
Once prebid has received its consent information, it removes the listener. As a result, other libraries that require consent info communicate with a broken __uspapi, as callbacks are never triggered
Description
The consentManagementUsp.js has the following code
function uspapiCallback(consentObject, success) {
window.removeEventListener('message', readPostMessageResponse, false);
moduleCallback(consentObject, success);
}
Removing the event listener results that subsequent calls to __tcfapi wont be handled by the newly installed __tcfapi function.
The solution is just to remove the window.removeEventListener line.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Type of issue
When __uspapi is provided through an iframe / __uspapiLocator, the consent management module installs __uspapi that communicates through the message api.
Once prebid has received its consent information, it removes the listener. As a result, other libraries that require consent info communicate with a broken __uspapi, as callbacks are never triggered
Description
The consentManagementUsp.js has the following code
Removing the event listener results that subsequent calls to __tcfapi wont be handled by the newly installed __tcfapi function.
The solution is just to remove the
window.removeEventListener
line.The text was updated successfully, but these errors were encountered: