prebid throw error and pbjs object missing is preventing following javascript to run correctly

Created on 24 January 2019, over 6 years ago
Updated 20 July 2025, 8 days ago

There is a throw error when pbjs object is not present and undefined prebid object error makes other javascript to not be executed, will replace the throw error function with a console log, just to show the error and enclose the rest of the code within an "else" to prevent other errors caused by the missing object and for the prebid missing object will add a check to make sure the object is present.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇲🇽Mexico jamaral86

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024